Skip to content
Tcl Source Code Artifact [fdbf581432]
Login

Artifact [fdbf581432]

Artifact fdbf5814325ff6c0ec7f9deabc90f6116470a2e4:

Ticket change [fdbf581432] - New ticket [2028793fffffffff|2028793fff] <i>Namespace dependence of interp alias</i>. by lars_h on 2008-07-26 15:36:10.
D 2008-07-26T15:36:10
J assignee hobbs
J cmimetype text/plain
J comment This\sis\sprobably\smissing\sdocumentation\srather\sthan\san\sactual\sbug,\sbut\sit's\snonetheless\srather\sstrange\sbehavior.\n\n%\snamespace\seval\stest\s{interp\salias\s{}\sfoo\s{}\slist\s"From\sfoo";\sinterp\salias\s{}\stest::foo\s{}\slist\s"From\stest::foo"}\ntest::foo\n%\sfoo\n{From\sfoo}\n%\stest::foo\nError:\sinvalid\scommand\sname\s"test::foo"\n%\sinfo\scommands\stest::*\n%\snamespace\schildren\stest\n::test::test\n%\sinfo\scommands\stest::test::*\n::test::test::foo\n%\s::test::test::foo\n{From\stest::foo}\n\nThe\sbehaviour,\swhich\sis\sinherited\sfrom\sTcl_CreateObjCommand,\sis:\n\n-\saliases\swhose\ssrcCmd\sdoes\snot\scontain\sa\snamespace\sseparator\sare\screated\sin\sthe\s::\snamespace.\n\n-\saliases\swhose\ssrcCmd\scontains\sa\snamespace\sseparator\sare\screated\srelative\sto\sthe\scurrent\snamespace\scontext\s(in\sthe\sinterpreter\swhere\sthe\scommand\sis\sbeing\screated!).\sAs\sin\sthe\sabove\sexample,\sa\snot\sfully\squalified\sname\sis\sresolved\srelative\sto\sthe\scurrent\snamespace\s(::test)\seven\sif\sthe\starget\snamespace\s(::test::test)\sdoesn't\sexist\syet!\n\nThis\sis\srather\sdifferent\sfrom\s[proc],\sbut\sI\snotice\swhen\sexperimenting\swith\sthe\sissue\sthat\s[rename]\sand\s[namespace\sensemble\screate\s-command]\sare\ssimilarly\scapable\sof\screating\snamespaces.\n\n
J foundin obsolete:\s8.5.2
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter lars_h
J subsystem 20.\s[interp]
J title Namespace\sdependence\sof\sinterp\salias
J type Bug
K 2028793fffffffffffffffffffffffffffffffff
U lars_h
Z dc5295c12f18ff8478a1e3d77acd55e2