AA with complex keytype?

Oskar Linde oskar.lindeREM at OVEgmail.com
Fri Feb 9 02:18:04 PST 2007


Andrei Alexandrescu (See Website For Email) wrote:
> Manfred Nowak wrote:
>> For complex numbers comparisons other than == and != are not defined.
>>
>> AA's require classes to have comparisons defined.
>>
>> Why are AA's of complex numbers allowed?
> 
> Asociative arrays are unordered. All they need is a hash function, which 
> can be defined over any data type.

Not the DMD associative arrays. They require full ordering.

/Oskar



More information about the Digitalmars-d mailing list