On Mon, Feb 27, 2012 at 09:15:45PM -0800, Walter Bright wrote: > 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)[].
That's strange, because I'm clearly seeing a difference in hash value. Calling map1's keyti.getHash(key) yields a different value from map2's keyti.getHash(key). Unless something else is going wrong in the typeinfo (unlikely)? T -- Amateurs built the Ark; professionals built the Titanic.