Skip to content
Tcl Source Code Artifact [b819343af3]
Login

Artifact [b819343af3]

Artifact b819343af3bbf3e0c0fd4eae3168077ce6e7a93d:

Ticket change [b819343af3] - Ticket [2007198fffffffff|2007198fff] <i>[continue] result incompat with Tcl 8.4 ?</i> status still Open with 4 other changes by ferrieux on 2008-07-01 19:57:45.
D 2008-07-01T19:57:45
J icomment Logged\sIn:\sYES\s\nuser_id=496139\nOriginator:\sNO\n\nOK\sgot\sit\snow.\nThe\sproblem\sis\sthat\sINST_END_CATCH\sis\sexecuted\stoo\slate:\nIn\s[catch\s{...}\ssomevar],\s"somevar"\sis\sset\s*before*\sINST_END_CATCH.\n\nIn\smy\sexample:\s[catch\s{eval\s$ev;continue}\sy],\sI\shave\sverified\sthis\sfact\sby\ssingle-stepping\sthrough\sTEBC.\nFull\sdisassembly\sbelow.\sThe\sinteresting\spart\sis\sthe\ssequence:\n\n\s\s\s\s(43)\spushResult\s\n\s\s\s\s(44)\sstoreScalar1\s%v1\s\s\s\s\s\s\s#\svar\s"y"\n\s\s\s\s(46)\spop\s\n\s\s\s\s(47)\spushReturnCode\s\n\s\s\s\s(48)\sendCatch\s\n\nAs\syou\scan\ssee,\sthe\sResetResult\sin\sendCatch\scomes\safter\sthe\spushResult/storeScalar\s!\nNotice\sthat\sthe\sexample\sincludes\san\s[eval]\sin\sorder\sto\stouch\sthe\sinterp's\sresult.\nIndeed,\s[catch\s{set\sx\s12;continue}\sy]\sskips\sthe\sbug\sby\ssimply\snot\stouching\sthe\sresult\sin\sthe\sfirst\splace.\nWhile\s[catch\s{eval\s{set\sx\s12};continue}\sy]\scorrectly\sshows\sthe\smisbehavior.\n\nI'd\ssay\sthe\s"one\sright\splace"\sis\srather\safter\sthe\sline\n\nif\s((result\s==\sTCL_CONTINUE)\s||\s(result\s==\sTCL_BREAK))\s{\n\n(a\sfew\slines\sbelow\sthe\sprocessExceptionReturn:\slabel).\nDo\syou\sagree\s?\n\n\nFULL\sDISASS:\n\n\s\sCommand\s2:\s"catch\s{eval\s$ev;continue}\sy"\n\s\s\s\s(5)\sstartCommand\s+44\s1\s\s\s\s\s\s#\snext\scmd\sat\spc\s49\n\s\s\s\s(14)\sbeginCatch4\s0\s\n\s\sCommand\s3:\s"eval\s$ev"\n\s\s\s\s(19)\spush1\s1\s\s\s\s\s\s\s\s#\s"eval"\n\s\s\s\s(21)\sloadScalar1\s%v0\s\s\s\s\s\s\s\s#\svar\s"ev"\n\s\s\s\s(23)\sinvokeStk1\s2\s\n\s\s\s\s(25)\spop\s\n\s\sCommand\s4:\s"continue"\n\s\s\s\s(26)\sstartCommand\s+10\s1\s\s\s\s\s#\snext\scmd\sat\spc\s36\n\s\s\s\s(35)\scontinue\s\n\s\s\s\s(36)\sstoreScalar1\s%v1\s\s\s\s\s\s\s#\svar\s"y"\n\s\s\s\s(38)\spop\s\n\s\s\s\s(39)\spush1\s2\s\s\s\s\s\s\s\s#\s"0"\n\s\s\s\s(41)\sjump1\s+7\s\s\s\s\s\s\s#\spc\s48\n\s\s\s\s(43)\spushResult\s\n\s\s\s\s(44)\sstoreScalar1\s%v1\s\s\s\s\s\s\s#\svar\s"y"\n\s\s\s\s(46)\spop\s\n\s\s\s\s(47)\spushReturnCode\s\n\s\s\s\s(48)\sendCatch\s\n\s\s\s\s(49)\spop\s\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2007198fffffffffffffffffffffffffffffffff
U ferrieux
Z 0c485a978e2ea709a3cdbdfdfe7c6636