interface opEquals

Antonio antoniocabreraperez at gmail.com
Mon Nov 27 09:53:48 UTC 2023


On Saturday, 25 November 2023 at 01:15:34 UTC, Alexandru Ermicioi 
wrote:
> On Friday, 24 November 2023 at 17:39:10 UTC, Antonio wrote:
>> ...
>
> Dunno if this might help, but I noticed that `==` sometimes 
> calls `opEquals(const Object) const` instead of overload 
> defined on class/interface, you might try and override it as 
> well, and delegate to your overload that deals directly with 
> `IOpt`.
>
> Best regards,
> Alexandru.

Thangs Alexandru,

It works.

...but why?


More information about the Digitalmars-d-learn mailing list