Skip to content
Tcl Source Code Artifact [bf41ebf1a2]
Login

Artifact [bf41ebf1a2]

Artifact bf41ebf1a2bc3546b69b64f5fa8a1e1e28ab953c:

Ticket change [bf41ebf1a2] - New ticket [3169002fffffffff|3169002fff] <i>conversion from &quot;dict&quot; to &quot;list&quot; loses object types</i>. by sehmann on 2011-01-31 22:10:25.
D 2011-01-31T22:10:25
J assignee msofer
J cmimetype text/plain
J comment When\swe\suse\s"array\sget"\sa\sdict\sobject\sis\sreturned.\s\sIf\sthis\sis\sused\sdirectly\sin\sa\sforeach\sall\stypes\sare\spreserved.\s\sThe\sproblem\sarises\swhen\sthe\sresult\sis\scopied.\s\sIt\sseems\slike\sthe\sfix\sis\sto\ssimply\scopy\sthe\sobjects\sas\sthey\sare\swhen\sconverting\sfrom\sdict\sto\slist\s(tcl8.4.9\sjust\sappends\sthe\sarray\sobject\sinto\sthe\sresult\slist)\srather\sthan\sstringify\sthe\sobjects.\n\nwe\sare\strying\sto\supgrade\sour\ssystem\sfrom\s8.4.9\sto\s8.5.9\sand\sthis\sis\sa\sblocker.\n\n%\sarray\sset\sa\s""\n%\sset\sa(b)\s"1"\n1\n%\sset\sa(c)\s[list\s1\s2]\n1\s2\n%\sotype\s[array\sget\sa]\ndict\n%\sset\sl\s[array\sget\sa]\nb\s1\sc\s{1\s2}\n%\sotype\s$l\ndict\n%\sotype\s$l\ndict\n%\sforeach\skey\s[array\sget\sa]\s{\sputs\s"[otype\s$key]"\s}\nstring\nint\nstring\nlist\n%\sotype\s$l\ndict\n%\sforeach\skey\s$l\s{\sputs\s"[otype\s$key]"\s}\nstring\nstring\nstring\nstring\n%\sotype\s$l\nlist\n%\sputs\s$l\nb\s1\sc\s{1\s2}\n%\n
J foundin obsolete:\s8.5.9
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter sehmann
J subsystem 10.\sObjects
J title conversion\sfrom\s"dict"\sto\s"list"\sloses\sobject\stypes
J type Bug
K 3169002fffffffffffffffffffffffffffffffff
U sehmann
Z a1dca3c81ddd5932040cd98ea4fb9fcc