[Issue 7512] Associative arrays with dstring as key do not work correctly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 27 13:57:11 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7512



--- Comment #3 from hsteoh at quickfur.ath.cx 2012-02-27 13:57:09 PST ---
Even more weirdness:

int[int[]] a7;
const int[] key1 = [1,3,5];
const int[] key2 = [2,4,6];
a7[key1] = 135;
a7[key2] = 246;

int[int[]] a8 = [key1: 135, key2: 246];
assert(a7 == a8); // OK!
assert(a7[key1] == 135); // OK!
assert(a8[key1] == 135); // throws RangeError (?!)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list