.
D 2008-10-27T13:55:12
J assignee dkf
J cmimetype text/plain
J comment I've\sbeen\splaying\saround\swith\sthe\s[otherwise\swonderful]\snew\soo\spackage\sand\sstumbled\sacross\ssome\snamespace\sissues\sthat\sI\sfind\srather\sinconvenient.\s\n\nThe\sfollowing\scode\sworks\sas\sit\sstands,\sbut\sbreaks\sif\sit\sis\smoved\sinto\sa\snamespace:\n\n\s\s\s\soo::class\screate\sfruit\s{}\s\s\s\n\s\s\s\soo::class\screate\sbanana\s{\nsuperclass\sfruit\n\s\s\s\s}\n\nIf\sthis\sis\sevaluated\sin\snamespace\smynsp\sthe\ssuperclass\sstatement\sneeds\sto\sbe\schanged:\n\n\s\snamespace\seval\smynsp\s{\n\s\s\s\soo::class\screate\sfruit\s{}\s\s\s\n\s\s\s\soo::class\screate\sbanana\s{\n#\ssuperclass\sfruit\s\s;#\s<-\sshould\swork\n\s\s\s\s\s\s\s\ssuperclass\smynsp::fruit\s\s;#\sdoes\swork\n\s\s\s\s}\n\s\s}\n\nI\scurrently\ssee\sno\s[non-convoluted]\sway\sto\savoid\sthe\shardcoded\sreference\sto\sthe\smynsp-namespace\sin\sthis\ssuperclass\sstatement.\n\nThe\sreason\sseems\sto\sbe\sthat\soo::class\sevaluates\sits\sscript\sin\sthe\soo::define\snamespace.\sWouldn't\sit\sbe\sbetter\sto\sextend\sthe\s"namespace\spath"\sof\soo::define\sduring\sthe\sexecution\sof\sthe\sdefiner\sscript\swith\sthe\snamespace\spath\sof\sthe\scurrent\snamespace?\n\nVariable\sresolution\sis\stroubled\sby\sthe\ssame\sdilemma:\sthe\scode\s\n\n\s\snamespace\seval\smynsp\s{\n\s\s\s\sset\sbar\sbaz\n\s\s\s\soo::class\screate\sfoo\s{\nmethod\s$bar\sargs\s{}\n\s\s\s\s}\n\s\s}\n\nfails\smost\sof\sthe\stime,\sbecause\s$bar\scurrently\sresolves\sto\s$::bar\srather\sthan\s$mynsp::bar.\s\n\nI\swould\smost\shumbly\ssuggest\sto\sreview\sthese\sresolution\srules\sagain.
J foundin obsolete:\s8.6a3
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter cnassau
J subsystem 35.\sTclOO\sPackage
J title awkward\snamespace\sbehaviour
J type Bug
K 2200824fffffffffffffffffffffffffffffffff
U cnassau
Z b85956e70d128399f60f847b008cdbe7