Need help locating AA bug
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Feb 28 07:20:49 PST 2012
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
> 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
Unless something else is going wrong in the typeinfo (unlikely)?
Amateurs built the Ark; professionals built the Titanic.
More information about the Digitalmars-d