.
D 2008-08-05T18:40:31
J assignee dgp
J cmimetype text/plain
J comment \nCommand\sdelete\sand\srename\straces\screated\nby\sTcl_CreateTrace\s(or\sthe\sscript\sinterface\n[trace\sadd\scommand])\sdo\snot\sset\sthe\nflag\sbit\sTCL_INTERP_DESTROYED\swhen\s\ncalling\sTcl_CommandTraceProc\scallbacks.\nNear\sas\sI\scan\stell\sbrowsing\sthe\scvs\slogs,\nthey\snever\shave.\n\nThis\sis\scontrary\sto\sthe\sdocumentation\nfor\sTcl_CreateTrace.\s\sThe\sdocs\shave\salways\nclaimed\sthis\sflag\swould\sbe\sset.\n\nIt\sappears\sthis\sproblem\sarises\smostly\nbecause\sthe\sdocs\sfor\sTcl_CreateTrace\nwere\snot\swritten\sfrom\sthe\sground\sup,\sbut\nwere\swritten\svia\scopy/paste/fail-to-modify\napplied\sto\sTraceVar.3.\n\nThe\sTCL_INTERP_DESTROYED\sflag\shas\salways\nbeen\sa\sboneheaded\sinterface,\seven\sin\nvariable\straces.\s\sThere's\sno\ssensible\nreason\sa\strace\scallback\sroutine\sneeds\nspecial\snotification\sabout\sthe\sinterpreter\nbeing\sin\sa\sstate\sof\sgetting\sdeleted,\swhen\nthe\sTcl_InterpDeleted()\sroutine\sis\sright\nthere\sto\sdiscover\sthat\sfact.\sFurthermore,\nfor\smost\sof\sits\slife\sthe\ssetting\sof\sthe\nTCL_INTERP_DESTROYED\sflag\shas\sbeen\sbroken.\nSee\sFeature\sRequest\s1714505\sand\sBug\s1706140.\n\nI'm\sin\sno\smood\sto\sadd\ssomething\sstupid\sto\ncommand\straces,\sjust\sbecause\sthe\soriginators\nof\sthem\scouldn't\sbe\sbothered\sto\swrite\scorrect\ndocs\sin\sthe\sfirst\splace.\s\sMy\sintended\sfix\nis\sto\schange\sthe\sdocs\sto\smatch\swhat\sthe\scode\ndoes.\n\nThis\swould\sall\sbe\sharmless\sstupidity,\sexcept\nthat\sapparently\sDonal\sFellows\smade\sthe\smistake\nof\sbelieving\sthe\sdocs\swhen\swriting\sTclOO,\nwhich\sassumes\sthe\sTCL_INTERP_DESTROYED\sflag\nis\smeaningful\sin\sa\scommand\sdelete\strace.
J foundin obsolete:\s8.6a1
J is_private 0
J priority 9\sImmediate
J resolution None
J status Open
J submitter dgp
J subsystem 46.\sTraces
J title Tcl_CreateTrace\straces\sdon't\sset\sTCL_INTERP_DESTROYED
J type Bug
K 2039178fffffffffffffffffffffffffffffffff
U dgp
Z d4a9332f72246c53897c415ef0dadd7c