[Swift-devel] Associative arrays issue

Yadu Nand yadudoc1729 at gmail.com
Mon Jun 20 15:37:29 CDT 2011


Hi,

I've come across a very curious situation in which
array["key"][1]  works while array["key"]["id1"] fails.
I was trying to create unique ids using UUIDs and
casted to strings when I came across this. Any
help would be appreciated. I've attached the logs
to this mail.

script:

int array[ ][ ];
array["key"]["a"] = 10;
array["key"]["b"] = 20;
array["key"]["c"] = 30;
foreach value, index in array["key"] {
        trace(value);
}

Output:

Progress:  time: Tue, 21 Jun 2011 02:00:33 +0530
Execution failed:
	For input string: "b"

-- 
Thanks and Regards,
Yadu Nand B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assoc_array-20110621-0200-4y90zv88.log
Type: text/x-log
Size: 12479 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20110621/7fd81c7a/attachment.bin>


More information about the Swift-devel mailing list