<i>write trace on ::errorInfo is broken</i> status still Open with 4 other changes
by
.
D 2006-01-07T04:55:35
J icomment Logged\sIn:\sYES\s\nuser_id=190660\n\nMultiple\serrorInfo\strace\sfirings\sdon't\sbother\sme.\nNor\sdo\seliminated\sduplicates.\s\sBut\sfailure\nto\sfire\sat\sall\swhen\serrorInfo\schanges\sis\sa\sproblem\sas\nthe\s[trace]\sman\spage\sdefines\sbehavior\sfor\swrite\sas:\n\n\s\s"For\swrite\straces,\scommand\sis\sinvoked\s\safter\n\s\sthe\svariable's\svalue\shas\sbeen\schanged"\n\nI've\sdone\sa\sbit\sof\sexperimentation\son\s8.5a3,\sand\nthe\shalf-backed\sapproach\sworks\swell\senough\sfor\smy\spurpose.\nBut\sI\ssuspect\sthat\sdoing\sTclObjLookupVar()\severy-time\nis\sless\sefficient\sthan\syou\shad\sin\smind\swhen\srefactoring?\nPerhaps\sthe\svar\slookup\scould\sbe\scached\n(maybe\shooking\sinto\sthe\sEstablishErrorInfoTraces()\scall)?\nIf\sso\sthen\swouldn't\sTclCallVarTraces()\sbe\sefficient\senough\nas\sa\smeans\sof\s"detecting"\swrite\straces?\nI\sreally\sdon't\sknow\senough\sabout\sin-core\sdetails\sof\nvariables\sto\sreally\scomment\sknowledgeably\sabout\scaching\sthem.\n\nLastly,\sthe\squestion\sof\show\soften\sto\strigger:\sI\swould\sthink\nthat\sat\sleast\sonce\sper\sTcl_AddObjErrorInfo()\sis\sprobably\sbest.\nThis\sallows\sthe\strace\shandler\sto\sfollow\sthe\sstack\nunwind\sto\sperform\scustom\slogic.\s\sFor\sexample\nit\scould\scollect\s[info\slocals]\sat\seach\slevel\sof\sthe\sunwind.\nIf\sthat\sis\stoo\sinefficient,\sthen\sminimally\sthe\sfirst\ncall\sto\sTcl_AddObjErrorInfo()\sin\sa\sstack\sunwind.\nThough\show\syou\swould\sdetect\sthat\sit's\sthe\sfirst\sis\sbeyond\sme,\nand\sits\snot\sas\spowerful.\n\nI\swould\sbe\smost\shappy\sif\sthis\scould\ssomehow\sbe\ssolved.\nLet\sme\sknow\sif\sI\scan\sdo\sor\stest\sanything\sto\shelp\sout.\nIncompatible\sbehavior\s(numbers\sof\sfirings)\sis\sfar\sless\nof\san\sissue\sfor\sme\sthan\slack\sof\sfiring,\sbecause\sit\stakes\naway\sone\sof\sTcl's\sbest\sdebugging\scapability.\n\n
J login pcmacdon
J mimetype text/plain
J username pcmacdon
K 1397843fffffffffffffffffffffffffffffffff
U pcmacdon
Z c9ae75b491eb18e52bf001568d7248f6