Skip to content
Tcl Source Code Artifact [85aa0e9d1e]
Login

Artifact [85aa0e9d1e]

Artifact 85aa0e9d1e0a0eff481f408a75ea19beb6bf1dde:

Ticket change [85aa0e9d1e] - Ticket [fbc88fb645c5b2f4|fbc88fb645] <i>[variable] doesn&#39;t follow variable resolution rules</i> status still Open with 3 other changes by dgp on 2017-06-01 17:01:15.
D 2017-06-01T17:01:15.709
J icomment \r\nDidn't\seven\stry\sto\sdecipher\sthat.\r\n\r\nLook\sat\sthe\soriginal\sticket.\sFirst\stwo\scommands\r\ndemonstrate\sthat\swhen\sthe\scurrent\snamespace\sis\s::foo,\r\nthe\svariable\sname\s"a::a"\scan\sresolve\sto\s::a::a\s.\s\sIt\r\ndoes\sso\swhen\s::foo::a::a\sdoes\snot\sexist\sand\s::a::a\r\nexists.\r\n\r\nThe\s8th\scommand\sdemonstrates\sthat\sthe\ssame\sresolution\r\nhappens\swithin\sa\sproc\sbody\sunder\sthe\ssame\sconditions.\r\n\r\nThe\s9th\sand\s10th\scommands\sdemonstrate\sthat\swhen\sthe\r\n[variable]\scommand\sis\sbrought\sinto\sthe\spicture\swithin\sa\r\nproc\sbody\swhere\sthe\scurrent\snamespace\sis\s::foo,\sand\r\nwhen\s::foo::a::a\sdoes\snot\sexist\sand\s::a::a\sdoes\sexist,\r\nwhen\s"a::a"\sis\spassed\sas\san\sargument\sto\s[variable]\sit\r\ndoes\snot\sget\sthe\ssame\sresolution\streatment.\s\sThis\sis\sat\r\nleast\ssurprising\sand\ssure\ssmells\slike\sa\sbug.\s\sAt\sbest\sit's\r\nan\sugly\sinconsistency.\r\n\r\nThus\sthe\stitle:\s[variable]\sdoesn't\sfollow\svariable\sresolution\srules
J login dgp
J mimetype text/plain
K fbc88fb645c5b2f47f16cd0e167ef47de081f212
U dgp
Z fa6a1ce1460791950be882c3f94e8703