.
D 2002-06-07T13:54:00
J assignee msofer
J cmimetype text/plain
J comment \nWhen\sI\s[namespace\simport\s::ns::foo],\sit\sis\sclear\sthat\sI\ncreate\sa\snew\scommand\s"foo"\sin\sthe\scurrent\snamespace\nwhich\srefers\sto\sthe\scommand\s::ns::foo.\s\sBut\sprecisely\nwhat\sdoes\sit\srefer\sto?\s\sDoes\sit\srefer\sto\sthe\s*name*\n::ns::foo,\sor\sdoes\sit\srefer\sto\sthe\scommand\sthat\scurrently\nhas\sthe\sname\s::ns::foo\s?\n\n[namespace\simport]\swill\snot\swork\son\san\sundefined\sname,\nso\sit\sseems\sto\sindicate\sthat\sthe\sreference\sis\sto\sthe\sactual\ncommand,\snot\sthe\sname.\s\sFurthermore,\sthere\sare\sother\nways\sto\sreference\scommands\sby\sname,\sincluding\s"wrapping"\nprocs,\sand\s[interp\salias].\n\nBut,\sTcl\sappears\sto\stry\sto\shave\sit\sboth\sways.\s\sThe\nimplementation\nof\s[rename]\sdoes\stransfer\simport\slinks\sfrom\sthe\sold\sname\sto\nthe\snew\sname,\spreserving\sthe\sreferences\sto\sthe\scommand\nitself.\nBut!\sthe\simplementation\sof\sTcl_CreateObjCommand\salso\ntransfers\simport\slinks\sfrom\sthe\soriginal\sdefinition\sto\nthe\snew\ndefinition\swhen\sa\scommand\sname\sis\sreused,\spreserving\nthe\sreferences\sto\sthe\scommand\sname.\n\nThat\sseems\sinconsistent\sto\sme.\s\sIs\sit\sreally\sintended\nto\sdo\sboth.\nIf\sso,\scan\sit\sbe\sbetter\sdocumented?\n
J foundin obsolete:\s8.4a5
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 21.\s[namespace]
J title inconsistent\s[namespace\simport]\smodel
J type Bug
K 565823ffffffffffffffffffffffffffffffffff
U dgp
Z ea82d1f6cdd6dbb8bc37bbdeec667b32