Skip to content
Tcl Source Code Artifact [d500218f96]
Login

Artifact [d500218f96]

Artifact d500218f9625d338863eed883b429b037014d750:

Ticket change [d500218f96] - Ticket [2883036fffffffff|2883036fff] <i>upvar-7.1 leaves irremovable variable</i> status still Open with 4 other changes by nijtmans on 2009-10-21 15:34:31.
D 2009-10-21T15:34:31
J icomment The\ssame\shappens\swhen\susing\snamespace\svariables:\n\n%\snamespace\seval\sx\s{upvar\s0\sx\suv;set\suv\s34}\n34\n%\sset\sx::x\n34\n%\sunset\sx::x\n%\sset\sx::uv\ncan't\sread\s"x::uv":\sno\ssuch\svariable\n%\snamespace\seval\sx\s{info\svars\suv}\nuv\n\nGiving\sit\ssome\sthoughts,\supvar\sis\sreally\sonly\nmeant\sto\sbe\sused\sfor\slocal\svariables.\sWhat\nwould\shappen\sif\swe\schanged\sthe\sdocumentation\nand\sthe\simplementation:\sIn\scase\sthe\slinkvar\sis\na\sglobal\sor\sa\snamespace\svariable,\sthen\san\nunset\sshould\sjust\sremove\sboth.\sWould\sany\ntest\scase\sfail\sif\sthis\swas\schanged?\sIt's\nworth\sa\stry,\sbut\sI\sguess\sthat\sit\swouldn't\nbother\sany\spractical\scase.\n\nYes,\sa\sTIP\sis\sneeded\sfor\sthis.\sIs\sthere\nanyone\sout\sthere\swho\shas\sa\scounter\nexample\sof\sa\suse\scase\swhere\sthis\nchange\swould\sbe\sa\sproblem?\sIf\snot,\nthen\sI\swould\ssuggest\sto\schange\sthe\nbehavior\sand\sthe\simplementation.\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 2883036fffffffffffffffffffffffffffffffff
U nijtmans
Z 15736d00f02c9af603effd67d56ea28d