Behavior of opEquals

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 4 13:39:14 PDT 2015


On 09/04/2015 09:21 PM, H. S. Teoh via Digitalmars-d wrote:
>
> Wait, wait, did I miss something? Since when was operator overloading
> allowed as free functions?

Since UFCS, but DMD does not implement it.

> Or is opEquals a special case?
>

Yup, quite special: http://dlang.org/operatoroverloading.html#equals



More information about the Digitalmars-d mailing list