WAT: opCmp and opEquals woes

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 25 02:12:11 PDT 2014


On 25/07/14 10:48, Walter Bright wrote:
> 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.

It's very hard to use D when it constantly changes and breaks code. It's 
especially annoying reading your comments on reddit that we must stop 
break code. Then a few days later go an break code. I really hope no one 
gets false hopes from those comments.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list