Skip to content
Tcl Source Code Artifact [cbc24b2a1c]
Login

Artifact [cbc24b2a1c]

Artifact cbc24b2a1cb98d246dc7bb934cb5d6ed071355c6:

Ticket change [cbc24b2a1c] - Ticket [633204ffffffffff|633204ffff] <i>catch { return foo } breaks inside proc </i> status still Open with 4 other changes by dgp on 2002-12-19 00:42:10.
D 2002-12-19T00:42:10
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\nThe\spatch\sdefines\sa\snew\sopcode\sin\nthe\sbytecode\sexecution\sengine.\nIn\sorder\sto\smaintain\scompatibility\nwith\sexternal\sbytecode\sbrought\sin\nby\stbcload,\snew\sopcodes\scan\sonly\nbe\sdefined\sfor\sa\snew\sminor\srelease\nof\sTcl,\sso\sthis\spatch\scan't\sbe\sapplied\nuntil\s8.5\sdevelopment.\n\nSo,\n1.\sCan't\sadd\san\sopcode.\n2.\sNo\sexisting\sopcode\sreturns\sTCL_RETURN,\nTherefore,\nthe\sonly\scorrect\sfix\sthat\scan\sbe\sapplied\sin\sthe\n8.4.x\stimeframe\sis\sto\sdisable\sbytecompiling\nof\s[return].\n\nA\sworkaround\sthat\swould\sstill\sbe\sbuggy,\sbut\nwould\scorrect\sthe\sreported\sexample\sscript,\nwould\sbe\sto\sadd\sspecial\sdetection\sof\san\nenclosing\s[catch]\sin\sTclCompileReturnCmd()\nand\sreturn\sTCL_OUT_LINE_COMPILE\sin\nthat\scase.\n\nThe\sremaining\sbug\safter\sthat\sworkaround\nwould\sbe\sharder\sto\sdemo.\s\sTEBC\sand\nTclCompEvalObj()\sshould\sevaluate\sgeneral\nTcl\sscripts.\s\sThe\sbug\sis\sthat\sthey\sare\nimplicitly\sconverting\sTCL_RETURN\sto\sTCL_OK,\nas\sif\sthey\swere\sonly\sgood\sfor\sevaluating\sproc\nbodies.\s\sThis\sbug\smight\sstill\sbe\sexposed\sby\nC\scode\sthat\scalls\sTcl_EvalObjEx().\n\nBetter\sto\sget\sto\s8.5\sdevelopment\sand\sget\nthe\scorrect\sfix\sin\sthe\sBC\sengine\swith\sthe\nnew\sopcode.\n
J login dgp
J mimetype text/plain
J username dgp
K 633204ffffffffffffffffffffffffffffffffff
U dgp
Z 1bb51f7026a8931a3d31694ac2da52b9