Skip to content
Tcl Source Code Artifact [5263c9620a]
Login

Artifact [5263c9620a]

Artifact 5263c9620ad913054ddb4fbb30acd9652573b09d:

Ticket change [5263c9620a] - Ticket [1973096fffffffff|1973096fff] <i>bytecompiling uplevel, with access to the LVT</i> status still Open with 4 other changes by msofer on 2008-05-27 21:37:46.
D 2008-05-27T21:37:46
J icomment Logged\sIn:\sYES\s\nuser_id=148712\nOriginator:\sYES\n\nJust\snoticed\sa\sproblem\swith\sthe\sLVT\spatch,\sin\sa\scontrived\s(but\spossible)\sscenario:\sassume\sa\sproc\sstarts\sto\srun\sbut\sredefines\sand\scalls\sitself.\sOn\sreturning\sfrom\sthe\snested\scall\sthe\sProc\sstruct\s(and\sspecifically\sits\slocal\svars)\sreflect\sthe\sNEW\scompilation,\swhich\sis\sdifferent\sfrom\sthe\srunning\sone.\sIf\sin\sthis\ssituation\san\s[uplevel]\sscript\sis\scalled,\sit\swill\sbe\scompiled\sto\srun\swith\sthe\snew\sLVT\s(as\sfound\sin\sthe\sProc's\sdata),\sand\sthen\sactually\srun\swith\sthe\sold\sone\s(as\sfound\sin\sthe\sCallFrame's\slocalCache)!\n\nThis\sis\sfixable\s(and\swill\sbe\sfixed)\sby\slooking\sup\slocal\svars\sin\sthe\sCallFrame's\slocalCache\sinstead\sof\susing\sthe\sProc\sdata\sduring\scompilation.\sIn\sthe\smeantime,\sthe\spatch\shere\sshould\swork\sfine\sas\slong\sas\sthat\sunlikely\sscenario\sis\savoided.\sNot\sgood\sfor\scommitting,\sbut\sgood\senough\sfor\spreliminary\sevaluation.\n\n
J login msofer
J mimetype text/plain
J username msofer
K 1973096fffffffffffffffffffffffffffffffff
U msofer
Z 2025c1ce19ed7505b7921db38cffe8fd