.
D 2011-02-01T19:25:42
J icomment Not\ssure\sabout\swhat\syou\sare\strying\sto\sdo,\sbut:\sthe\stype/intrep\sof\sa\sTcl_Obj\sis\sjust\sa\scache\soptimising\sthe\srepresentation\sfor\sthe\s*last*\susage\sof\sthis\sobj.\sIt\sis\s*not*\sreally\sa\sproperty\sof\sthe\sTcl_Obj,\sand\sis\ssubject\sto\schanging\s(aka\sshimmering).\n\nIn\syour\sscript,\slet\sus\sfollow\swhat\shappens\sto\s'a':\n\nset\sfoo(b)\sa\nset\sbar(a)\sb\n#\s'a'\sis\sjust\sa\sstring\n\nforeach\si\s[array\snames\sbar]\s{\n\s\s\s\s\s\s\sputs\s"$i\s:\s[otype\s$i]"\n}\n#\s'a'\shas\sonly\sbeen\sever\sused\sused\sas\sa\sstring,\sstill\sa\sstring\n\nset\sl\s{}\n\s\s\s\sforeach\s{i\sj}\s[array\sget\sfoo]\s{\n\s\s\s\s\s\s\sforeach\sk\s$j\s{\n\s\s\s\s\s\s\s\s\s\slappend\sk\s$l\n\s\s\s\s\s\s\s}\n\s\s\s\s}\n#\s'a'\shas\sbeen\streated\sas\sa\slist\sby\sdoing\s[foreach]\son\sit;\stype\sis\snow\slist\n
J login msofer
J mimetype text/plain
J username msofer
K 3169173fffffffffffffffffffffffffffffffff
U msofer
Z 82d79832d7423024d353da1dd261863e