WAT: opCmp and opEquals woes

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 25 01:48:47 PDT 2014


Putting it simply,

1. == uses opEquals. If you don't supply opEquals, the compiler will make one 
for you.

2. AAs use ==. See rule 1.


Easy to understand, easy to explain, easy to document.


More information about the Digitalmars-d mailing list