|
2014-10-09
| ||
| 14:56 | [2039178] Remove false claims about TCL_INTERP_DESTROYED flag bit in command traces. check-in: 5234b9ac20 user: dgp tags: trunk | |
| 14:53 | • Closed ticket [2039178fff]: Tcl_CreateTrace traces don't set TCL_INTERP_DEST... artifact: 4df822c238 user: dgp | |
| 14:52 | [2039178] Remove false claims about TCL_INTERP_DESTROYED flag bit in command traces. check-in: b14bb38f76 user: dgp tags: core-8-5-branch | |
|
2013-04-10
| ||
| 23:28 | • Ticket [2039178fff] Tcl_CreateTrace traces don't set TCL_INTERP_DESTROYED</i... artifact: bb69f05245 user: dgp | |
|
2013-01-08
| ||
| 01:41 | • Ticket [2039178fff]: 1 change artifact: a0a8195e4e user: dgp | |
|
2008-08-07
| ||
| 04:24 | • Ticket [2039178fff]: 5 changes artifact: bf7491d09a user: dgp | |
|
2008-08-05
| ||
| 18:40 | • New ticket [2039178fff]. artifact: a27e8ac719 user: dgp | |
Tcl_CreateTrace traces don't set TCL_INTERP_DESTROYED
Closed / Fixed2039178fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 12 years ago
Descriptionplain2008-08-05 18:40:31
Command delete and rename traces created by Tcl_CreateTrace (or the script interface [trace add command]) do not set the flag bit TCL_INTERP_DESTROYED when calling Tcl_CommandTraceProc callbacks. Near as I can tell browsing the cvs logs, they never have. This is contrary to the documentation for Tcl_CreateTrace. The docs have always claimed this flag would be set. It appears this problem arises mostly because the docs for Tcl_CreateTrace were not written from the ground up, but were written via copy/paste/fail-to-modify applied to TraceVar.3. The TCL_INTERP_DESTROYED flag has always been a boneheaded interface, even in variable traces. There's no sensible reason a trace callback routine needs special notification about the interpreter being in a state of getting deleted, when the Tcl_InterpDeleted() routine is right there to discover that fact. Furthermore, for most of its life the setting of the TCL_INTERP_DESTROYED flag has been broken. See Feature Request 1714505 and Bug 1706140. I'm in no mood to add something stupid to command traces, just because the originators of them couldn't be bothered to write correct docs in the first place. My intended fix is to change the docs to match what the code does. This would all be harmless stupidity, except that apparently Donal Fellows made the mistake of believing the docs when writing TclOO, which assumes the TCL_INTERP_DESTROYED flag is meaningful in a command delete trace.
dgpplain2008-08-07 04:24:01
Logged In: YES user_id=80530 Originator: YES Fixed the attempted use of this feature in TclOO.c.
dgp Ticket [2039178fff]: 1 change
[History diff]2013-01-08 01:41:27
dgp Ticket [2039178fff]: 1 change
[History diff]2013-04-10 23:28:19
dgp Closed ticket [2039178fff].
[History diff]2014-10-09 14:53:10
Log in (anonymous is fine) to add a comment.