<i>TIP #348: Substituted errorStack</i> status still Open with 4 other changes
by
.
D 2010-03-25T03:45:34
J icomment \nThere\sremains\san\soffset\sin\sthe\stiming\sof\sappends\nto\s-errorinfo\sand\s-errorstack:\n\nproc\smyEval\sscript\s{\n\s\s\s\sif\s{[catch\s{uplevel\s1\s$script}\sm\so]\s==\s1}\s\s{\n\s\s\s\s\s\s\s\sputs\sEI:[dict\sget\s$o\s-errorinfo]\\n\n\s\s\s\s\s\s\s\sputs\sES:[dict\sget\s$o\s-errorstack]\n\s\s\s\s}\n}\nproc\sfoo\s{}\s{error\sbar}\nmyEval\sfoo\n\nOUTPUT:\nEI:bar\n\s\s\s\swhile\sexecuting\n"error\sbar"\n\s\s\s\s(procedure\s"foo"\sline\s1)\n\s\s\s\sinvoked\sfrom\swithin\n"foo"\n\s\s\s\s("uplevel"\sbody\sline\s1)\n\s\s\s\sinvoked\sfrom\swithin\n"uplevel\s1\s$script"\n\nES:foo\s{uplevel\s1}\s{myEval\sfoo}\n\nIt\sis\sclear\sthat\sthe\seach\sTcl_LogCommandInfo\ncall\sis\sappending\sto\s-errorinfo\stext\srelated\sto\nthe\scommands\sthat\shave\scompleted\stheir\nevaluation,\swhile\sit\sappends\sto\s-errorstack\ninformation\sabout\sthe\scurrent\scontext\swhich\nhas\snot\syet\sbeen\sterminated.\s\sParallel\sappends\nwould\sbe\sless\sconfusing.\n\nIf\s-errorstack\sconstruction\scould\sbe\schanged\sto\nmatch\s-errorinfo,\sthen\sthe\s[control::eval]\scommand\nwould\salready\shandle\s-errorstack\scorrectly\sas\swritten.\n\nWith\sthe\scurrent\spatch,\sthe\s[control::eval]\scommand\nneeds\sto\shave\scode\sadded\sto\sstrip\sa\sfinal\s{uplevel\s1}\nfrom\sthe\s-errorstack\sto\sfully\sdisguise\sthe\swrapping\sreplacement.\nThe\sanalogous\sissue\swould\simpact\s[control::ascaller]\stoo.\n
J login dgp
J mimetype text/plain
J username dgp
K 2868499fffffffffffffffffffffffffffffffff
U dgp
Z aae40fb310e33b7a35b4d19c4f1d04db