Skip to content
Tcl Source Code Artifact [4df822c238]
Login

Artifact [4df822c238]

Artifact 4df822c23879548056aa7d1647adeee5f2edef75:

Ticket change [4df822c238] - Closed ticket [2039178fffffffff|2039178fff]: <i>Tcl_CreateTrace traces don&#39;t set TCL_INTERP_DESTROYED</i> plus 7 other changes by dgp on 2014-10-09 14:53:10.
D 2014-10-09T14:53:10.569
J closedate 2456940.12026122
J closer dgp
J comment Command\sdelete\sand\srename\straces\screated\r\nby\sTcl_CreateTrace\s(or\sthe\sscript\sinterface\r\n[trace\sadd\scommand])\sdo\snot\sset\sthe\r\nflag\sbit\sTCL_INTERP_DESTROYED\swhen\s\r\ncalling\sTcl_CommandTraceProc\scallbacks.\r\nNear\sas\sI\scan\stell\sbrowsing\sthe\scvs\slogs,\r\nthey\snever\shave.\r\n\r\nThis\sis\scontrary\sto\sthe\sdocumentation\r\nfor\sTcl_CreateTrace.\s\sThe\sdocs\shave\salways\r\nclaimed\sthis\sflag\swould\sbe\sset.\r\n\r\nIt\sappears\sthis\sproblem\sarises\smostly\r\nbecause\sthe\sdocs\sfor\sTcl_CreateTrace\r\nwere\snot\swritten\sfrom\sthe\sground\sup,\sbut\r\nwere\swritten\svia\scopy/paste/fail-to-modify\r\napplied\sto\sTraceVar.3.\r\n\r\nThe\sTCL_INTERP_DESTROYED\sflag\shas\salways\r\nbeen\sa\sboneheaded\sinterface,\seven\sin\r\nvariable\straces.\s\sThere's\sno\ssensible\r\nreason\sa\strace\scallback\sroutine\sneeds\r\nspecial\snotification\sabout\sthe\sinterpreter\r\nbeing\sin\sa\sstate\sof\sgetting\sdeleted,\swhen\r\nthe\sTcl_InterpDeleted()\sroutine\sis\sright\r\nthere\sto\sdiscover\sthat\sfact.\sFurthermore,\r\nfor\smost\sof\sits\slife\sthe\ssetting\sof\sthe\r\nTCL_INTERP_DESTROYED\sflag\shas\sbeen\sbroken.\r\nSee\sFeature\sRequest\s1714505\sand\sBug\s1706140.\r\n\r\nI'm\sin\sno\smood\sto\sadd\ssomething\sstupid\sto\r\ncommand\straces,\sjust\sbecause\sthe\soriginators\r\nof\sthem\scouldn't\sbe\sbothered\sto\swrite\scorrect\r\ndocs\sin\sthe\sfirst\splace.\s\sMy\sintended\sfix\r\nis\sto\schange\sthe\sdocs\sto\smatch\swhat\sthe\scode\r\ndoes.\r\n\r\nThis\swould\sall\sbe\sharmless\sstupidity,\sexcept\r\nthat\sapparently\sDonal\sFellows\smade\sthe\smistake\r\nof\sbelieving\sthe\sdocs\swhen\swriting\sTclOO,\r\nwhich\sassumes\sthe\sTCL_INTERP_DESTROYED\sflag\r\nis\smeaningful\sin\sa\scommand\sdelete\strace.
J login dgp
J mimetype text/plain
J resolution Fixed
J severity Minor
J status Closed
K 2039178fffffffffffffffffffffffffffffffff
U dgp
Z 3e51e24b323b86287482ac4a64d06be5