Skip to content
Tcl Source Code Artifact [e3aae74d0c]
Login

Artifact [e3aae74d0c]

Artifact e3aae74d0cc239e8eed78b3ac7edcfb90a9d1c5a:

Ticket change [e3aae74d0c] - New ticket [218546ffffffffff|218546ffff] <i>&quot;variable foo(x)&quot; has inconsistant behavior</i>. by nobody on 2000-10-26 01:01:59.
D 2000-10-26T01:01:59
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s981\sBug\nVersion:\s8.3b2\nSubmitDate:\s'1998-12-16'\nLastModified:\s'2000-01-20'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\sadmin\nChangedBy:\sericm\nOS:\sAll\nFixedDate:\s'2000-01-20'\nFixedInVersion:\s8.3\nClosedDate:\s'2000-10-25'\n\n\nThe\soriginal\sbug\sdescription\sis\sbelow\sthe\s--------snip---------\sline\sbelow.\s\sThat\sdescription,\showever,\sacknowledges\sthat\sthe\sbug\swas\sfixed\sin\s8.1,\sby\schanging\sthe\sbehavior\sof\s"variable\sfoo(x)".\s\sBut\sin\sinvestigating\sthe\sbug,\sI\sfound\sthis\sbehavior:\n\nnamespace\seval\sbar\s{\nvariable\sfoo(1)\n}\n=>\scan't\sdefine\s"foo(1)":\sno\ssuch\selement\sin\sarray\n\nHowever:\n\nnamespace\seval\sboo\s{\s\nset\sfoo(1)\sx\nvariable\sfoo(1)\n}\n=>\s#\sno\serror\n\nI\scorrected\sthis\sby\smaking\sthe\svariable\scommand\salways\sreturn\san\serror\swhen\sthe\svariable\sname\sgiven\srefers\sto\san\sarray\selement:\n\nnamespace\seval\sbar\s{\n\s\s\s\s\s\s\s\svariable\sfoo(1)\n}\ncan't\sdefine\s"foo(1)":\sname\srefers\sto\san\selement\sin\san\sarray\n\n-\seric\n\nOriginal\sbug\sreport\sbelow.\n-------------------snip-------------------------\n\nIn\s8.0.4,\sthe\scommand\s"variable\sfoo(x)"\screates\sa\sscalar\svariable\n"foo(x)"\sthat\sis\snot\srelated\sto\sthe\sfoo\sarray.\n\nThis\sbug\sis\snot\spresent\sin\s8.1,\swhere\sthe\svariable\scommand\nraises\san\serror.\n\n#\srepeatable\sscript\n\nnamespace\seval\sns\s{\n\s\s\s\svariable\sa\n\s\s\s\sarray\sset\sa\s{\n1one\n2two\n\s\s\s\s}\n}\nproc\sns::bug\s{varname\svalue}\s{\n\s\s\s\svariable\s$varname\s$value\n}\nns::bug\sa(3)\sthree\nputs\s"[info\svars\sns::*]"\n\n\n\nFixed\sin\s8.3.\n\n-\seric\n\s\n--\s01/20/2000\sericm
J foundin obsolete:\s8.3b2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 07.\sVariables
J title "variable\sfoo(x)"\shas\sinconsistant\sbehavior
J type Bug
K 218546ffffffffffffffffffffffffffffffffff
U nobody
Z 6a397d5d2d1d9dd527249746fbbf182f