.
D 2006-11-04T14:08:29
J assignee msofer
J cmimetype text/plain
J comment The\sidiom\s\n\s\suplevel\s1\s[info\slevel\s0]\nto\scause\sa\srenewed\scall\sto\sthe\ssame\sproc\scan\sbe\sbroken\nby\sinterp\saliases:\n\n\smig@ice:/tmp$\scat\s/tmp/test\n\sset\sres\s{}\n\sproc\sx\s{}\s{\n\s\s\s\sif\s{![llength\s$::res]}\s{\n\s\s\s\s\s\s\s\sset\s::res\s[list\s[info\slevel\s0]\s::\s[uplevel\s1\n[info\slevel\s0]]]\n\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\sreturn\s::\n\s\s\s\s}\n\s}\n\snamespace\seval\sa\s{\n\s\s\s\sproc\sx\s{}\s{return\s::a}\n\s}\n\sinterp\salias\s{}\sy\s{}\sx\n\snamespace\seval\sa\sy\n\sputs\s$res\n\n\smig@ice:/tmp$\s/home/CVS/tcl8.3.4/unix/tclsh\stest\n\sx\s::\s::a\n\nIn\sorder\sfor\sit\sto\sbreak\n\s1.\sthe\salias\starget\sis\snot\sfully\squalified\n\s2.\sthe\salias\starget\sis\sshadowed\sin\sthe\snamespace\sfrom\nwhich\sthe\salias\sis\sinvoked\n\nIt\sis\srelatively\seasy\sto\sfix\sthis:\sas\sinterp\saliases\nare\salways\slooked\sup\sin\sthe\sglobal\snamespace\sanyway,\nthe\starget\scould\sbe\sfully\squalified\sat\salias\screation\ntime.\sThis\swould\salso\ssimplify\sTEOVI,\sallowing\sto\nremove\sall\sthe\snamespace\sgymnastics\sperformed\sby\nTCL_EVAL_INVOKE.\sThe\sonly\schange\sseen\sby\scurrent\nscripts\swould\sbe\sin\serror\straces,\sand\sin\sthe\sactual\nreturn\sof\s[info\slevel\sn]\s(now\sfully\squalified).
J foundin obsolete:\s8.4.15
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter msofer
J subsystem 45.\sParsing\sand\sEval
J title alias\scan\sbreak\s[uplevel\s1\s[info\slevel\s0]]\sidiom
J type Bug
K 1590483fffffffffffffffffffffffffffffffff
U msofer
Z db109a8e07940d9db8cbe31dc4d1f0f0