Skip to content
Tcl Source Code Artifact [2190cee623]
Login

Artifact [2190cee623]

Artifact 2190cee6237db3cf9a37c2fdfa0deaa44ae46f00:

Ticket change [2190cee623] - Closed ticket [fbc88fb645c5b2f4|fbc88fb645]: <i>[variable] doesn&#39;t follow variable resolution rules</i> plus 6 other changes by sebres on 2017-05-31 06:57:35.
D 2017-05-31T06:57:35.381
J closedate 2457904.78999284
J closer sebres
J icomment You\sare\swrong\swith\syour\sassessment:\sin\syour\serror-case\sthe\svariable\sis\snot\sfully\squalified\s(thus\srelative\scurrent\snamespace),\sso\sit\sreferences\s"::foo::a::a"\swhich\sis\sindeed\snot\savailable.\r\n\r\nEither\syou\swant\sto\sreference\s"::foo::a::a"\s(then\syou\sshould\screate\sthis\svar):\r\n<code><pre>\r\n%\snamespace\seval\sfoo\s{namespace\seval\sa\s{set\sa\s"a\sin\s[namespace\scurrent]"};\sproc\sbar\s{}\s{variable\sa::a;\sputs\s$a}}\r\n%\sfoo::bar\r\na\sin\s::foo::a\r\n</pre></code>\r\nRather\syou\swant\sto\sreference\s"::a::a"\s(then\syou\sshould\swrite\sit\sfull-qualified):\r\n<code><pre>\r\n%\snamespace\seval\sfoo\s{proc\sbar\s{}\s{variable\s::a::a;\sputs\s$a}}\r\n%\sfoo::bar\r\na\sin\s::a\r\n</pre></code>\r\nThus\sclosed\sas\sinvalid.
J login sebres
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
K fbc88fb645c5b2f47f16cd0e167ef47de081f212
U sebres
Z 027ae0860046927abf661eb2377cf84c