AA with complex keytype?

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Fri Feb 9 01:02:18 PST 2007


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.


Andrei



More information about the Digitalmars-d mailing list