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
\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
\r\nRather\syou\swant\sto\sreference\s"::a::a"\s(then\syou\sshould\swrite\sit\sfull-qualified):\r\n
\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
\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