WAT: opCmp and opEquals woes

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 25 14:57:49 PDT 2014


On Friday, 25 July 2014 at 20:28:23 UTC, Walter Bright wrote:
> Nope. If the user doesn't write opEquals, the compiler will 
> generate one for him, using the same method as it did for ==.

Well, that was the case in 2.065, whereas 2.066 currently gives 
an error if you use a type as a key in an AA without defining 
opEquals for it. That change needs to be reverted.

- Jonathan M Davis


More information about the Digitalmars-d mailing list