== operator

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 4 07:15:08 PST 2015


On Sunday, 4 January 2015 at 15:02:39 UTC, anonymous wrote:
> On Sunday, 4 January 2015 at 05:24:09 UTC, Martin Nowak wrote:
>> It requires a `final bool opEquals(SameClass other)` method to 
>> avoid the virtual call.
>
> `final bool opEquals(Object)` is enough, no?

No, then you'd still need a dynamic cast for the argument.



More information about the Digitalmars-d mailing list