.
D 2024-09-05T23:59:16.600
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment In\sTcl\sup\sto\s8.6\screating\sa\scommand\swith\sa\sleading\ssingle\scolon\sis\sforbidden\sin\sall\snamespaces\sexcept\sthe\sroot\s{}\snamespace:\r\n\r\n$\stclsh8.6\s\r\n%\snamespace\seval\sfoo\s{proc\s:bar\s{}\s{puts\shi}}\r\ncan't\screate\sprocedure\s":bar"\sin\snon-global\snamespace\swith\sname\sstarting\swith\s":"\r\n\r\nThis\smakes\ssense\ssince\ssuch\scommand\sis\sunreachable\susing\sits\sfully\squalified\sname.\s::foo:::bar\sresolves\sto\sthe\s'bar'\scommand\sin\sthe\s'foo'\snamespace,\sgiven\sthe\srule\sthat\s'two\sor\smore\scolons'\sare\snamespace\sseparators.\r\n\r\nWith\sTcl\s9,\showever,\sit's\spossible\sto\screate\ssuch\scommand,\sbut\sit\scan't\sbe\sreached\susing\sits\sfull\squalified\sname:\r\n\r\n$\stclsh9.0\s\r\n%\snamespace\seval\sfoo\s{proc\s:bar\s{}\s{puts\shi}}\r\n%\snamespace\seval\sfoo\s{namespace\swhich\s:bar}\r\n::foo:::bar\r\n%\s::foo:::bar\r\ninvalid\scommand\sname\s"::foo:::bar"\r\n\r\nThis\schange\swill\sundoubtely\saffect\sa\slot\sof\sTk\sapplications\ssince\sit's\scommon\spractice\sto\suse\s[namespace\swhich]\sto\sfully\squalify\sbindings\sand\sother\scallbacks.\r\n\r\nTcllib\swill\sbe\saffected\stoo,\sfor\sexample\smath::calculus\suses\s[namespace\swhich]\sto\sfully\squalify\sprocs\sused\sas\sfunctions.
J foundin 9.0
J is_private 0
J login emiliano
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter emiliano
J subsystem 21.\s[namespace]
J title changed\sbehaviour\swrt\scommand\snames,\snamespaces\sand\sresolution
J type Bug
K f14b33ec9f900721ce156147ebd418ff7b930117
U emiliano
Z c2a30ddf37012341c98fdabcf353f2f7