Making `object.opEquals' replaceable

Manfred Nowak via Digitalmars-d digitalmars-d at puremagic.com
Fri May 8 09:59:59 PDT 2015


Jonathan M Davis wrote:

> And why not just use another function instead of opEquals for 
> what you want?

Because the local `opEquals' _is_ the overload-function for `==' 
and `!='.

I guess that your "another function"-opinion holds for every form 
of overloading.

-manfred



More information about the Digitalmars-d mailing list