Making `object.opEquals' replaceable

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


Kapps wrote:
> It's a performance benefit.

There is no proof that every replacing mechanism necessarily 
degrades performance. Please recall, that for implmenting a side 
effect on all checked pairs of elements of a class, a virtual 
call is necassary anyway.

-manfred



More information about the Digitalmars-d mailing list