Skip to content
Tcl Source Code Artifact [2277063a47]
Login

Artifact [2277063a47]

Artifact 2277063a47b6af3e38d9c4d6e60e1536481640b4:

Ticket change [2277063a47] - New ticket [3530230fffffffff|3530230fff] <i>multi-level return from source in safe interps</i>. by dkf on 2012-05-28 13:23:59.
D 2012-05-28T13:23:59
J assignee dgp
J cmimetype text/plain
J comment I\swas\strying\sto\sensure\sthat\s[return\s-level\s2]\sworks\sinside\sa\ssourced\sscript\sin\sa\ssafe\sinterpreter\s(created\swith\ssafe::interpCreate\sso\susing\ssome\saliases,\sincluding\sfor\s[source])\sand\sI\sfound\sthat\sthe\stest\sbelow\scaused\sa\scrash.\sThe\scrash\sdoesn't\sappear\sto\sbe\srelated\sto\sthe\simplementation\sof\sthe\saliased\sversion\sof\s[source];\sI\stried\sseveral\sand\sgot\sa\scrash\severy\stime.\n\ntest\ssafe-8.10\s{safe\ssource\sand\sreturn}\s-setup\s{\n\s\s\s\sset\sreturnScript\s[makeFile\s{return\s-level\s2\s"ok"}\sreturn.tcl]\n\s\s\s\scatch\s{safe::interpDelete\s$i}\n}\s-body\s{\n\s\s\s\ssafe::interpCreate\s$i\n\s\s\s\sset\stoken\s[safe::interpAddToAccessPath\s$i\s[file\sdirname\s$returnScript]]\n\s\s\s\s$i\seval\s[list\sapply\s{filename\s{\nsource\s$filename\nerror\sboom\n\s\s\s\s}}\s$token/[file\stail\s$returnScript]]\n}\s-cleanup\s{\n\s\s\s\scatch\s{safe::interpDelete\s$i}\n\s\s\s\sremoveFile\s$returnScript\n}\s-result\sok\n\nI'm\snot\s100%\ssure\sthat\sthe\stest\sis\sright,\sbut\sI'm\ssure\sit\sshouldn't\scrash…
J foundin obsolete:\s8.6b2
J is_private 0
J priority 8
J resolution None
J status Open
J submitter dkf
J subsystem 45.\sParsing\sand\sEval
J title multi-level\sreturn\sfrom\ssource\sin\ssafe\sinterps
J type Bug
K 3530230fffffffffffffffffffffffffffffffff
U dkf
Z 82c49f809a23b034709c864f68925214