Skip to content
Tcl Source Code Artifact [21160e9f8f]
Login

Artifact [21160e9f8f]

Artifact 21160e9f8fee12828f77ea51a2051c99187139c4:

Ticket change [21160e9f8f] - New ticket [bd2656d8e352ecc5|bd2656d8e3] <i>unset fails for declared-only namespace vars, but removes declaration</i>. by Martin0815 on 2016-10-28 13:07:10.
D 2016-10-28T13:07:10.291
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\s"unset"\scommand\sused\son\sa\snamespace\svariable,\swhich\shasn't\sa\svalue\sassigned,\scauses\scorrectly\san\serror,\sclaiming\sthe\svariable\sdoes\snot\sexist.\r\n\r\nThe\sdeclaration\sof\sthe\snamespace\svariable,\sexisting\sbefore\susing\s"unset",\swill\sbe\sremoved\sby\susing\s**unset**.\r\n\r\nHere\san\sexample\sscript:\r\n\r\n\s\s\s\s%\snamespace\seval\sa\s{\svariable\sA\s}\s\r\n\s\s\s\s%\sinfo\svars\sa::*\s\r\n\s\s\s\sa::A\s\r\n\s\s\s\s%\sinfo\sexists\sa::A\s\r\n\s\s\s\s0\s\r\n\s\s\s\s%\sunset\sa::A\s\r\n\s\s\s\scan't\sunset\s"::a::A":\sno\ssuch\svariable\s\r\n\s\s\s\s%\sinfo\svars\sa::*\r\n\s\s\s\s%\r\n\r\nIn\smy\sopinion\sthe\s"unset"\scommand\sshould\shave\sno\sside\seffects,\sif\sa\svariable\sdoes\snot\sexist!\r\nNothing\sis\sto\sbe\schanged,\sif\sa\svariable\sto\sbe\sunset\sdoes\snot\sexist,\seven\sif\sa\sdeclaration\sexist,\sthis\sshould\snot\sbe\stouched,\sor\sthe\s**unset**\scommand\sshould\sbe\schanged\sto\sdo\snot\sthrough\san\serror.\r\n\r\nOr\sotherwise\sits\sdocumentation\sshould\sbe\sextended\sto\sdocument\sthis\sside\seffect.
J foundin 8,6.4
J is_private 0
J login Martin0815
J priority 5\sMedium
J private_contact be10c68edb35fa3f93c8cac6f2c0d27dc3933920
J resolution None
J severity Minor
J status Open
J submitter Martin0815
J subsystem 07.\sVariables
J title unset\sfails\sfor\sdeclared-only\snamespace\svars,\sbut\sremoves\sdeclaration
J type Bug
K bd2656d8e352ecc5e48545542716c65441ea494f
U Martin0815
Z 39d4f79a5c9baaeb982f8635b2bcb0ed