Need help locating AA bug

Walter Bright newshound2 at
Mon Feb 27 21:15:45 PST 2012

On 2/27/2012 5:28 PM, H. S. Teoh wrote:
> 1) Why does map2's internal TypeInfo get set to int[] instead of
> const(int)[]?

There shouldn't be any difference, as far as aa's go.

> 2) Why does map1[key] use int[]'s version of getHash() even though
> map1's TypeInfo actually points to const(int)[]?

There should be no difference in the hash value for an int[] and a const(int)[].

More information about the Digitalmars-d mailing list