Skip to content
Tcl Source Code Artifact [3aaa8bc65e]
Login

Artifact [3aaa8bc65e]

Artifact 3aaa8bc65e693d1592d06e7b478d1787aac84fb6:

Ticket change [3aaa8bc65e] - Ticket [231259ffffffffff|231259ffff] <i>shadowing byte-compiled commands</i> status still Closed with 6 other changes by msofer on 2001-11-29 21:42:49.
D 2001-11-29T21:42:49
J closedate 2001-11-29T14:42:49
J closer msofer
J icomment Logged\sIn:\sYES\s\nuser_id=148712\n\nA\ssimpler\sexample\s(will\sgo\sinto\sthe\stests)\sis:\n\nnamespace\seval\stest\s{variable\sb\s0}\n\nproc\stest::a\s{i}\s{\n\s\s\s\svariable\sb\n\s\s\s\sproc\sset\sargs\s{return\s"New\sproc\sis\scalled"}\n\s\s\s\sreturn\s[set\sb\s$i]\n}\n\nlist\s[test::a\s1]\s[test::a\s2]\s$test::b\n\nThe\scorrect\soutput\sis\n\n1\s{New\sproc\sis\scalled}\s1\n\nand\sthe\soutput\swithout\sthe\spatch\sis\n\n1\s2\s2\n\nExplanation:\s\n\n\s\s-\sat\sthe\sfirst\srun\sof\stest::a\s[::set]\sis\scalled\sas\sit\swas\ncompiled\sinto\sthe\sproc\s\sbody.\sWe\scannot\ssee\sthe\seffects\sof\sa\nredefinition\sof\sa\sbcc'ed\scommand\sfrom\swithin\sthe\sbytecode\nthat\sdid\sthe\sredefinition,\sas\sit\swill\srun\sto\sthe\send\sonce\sit\nstarts\sexecuting.\n\n\s\s-\sat\ssuccessive\sruns,\sthe\sshadowed\scommand\sis\sdetected\sand\na\srecompilation\sis\sforced:\sthe\snew\sdefinition\sis\sused.\n\n\n
J login msofer
J mimetype text/plain
J username msofer
K 231259ffffffffffffffffffffffffffffffffff
U msofer
Z d7c1aadff33926e9c2cabaeb5fed6504