D1 operator overloads have been deprecated.

uranuz neuranuz at gmail.com
Mon Oct 7 20:06:53 UTC 2019


On Monday, 7 October 2019 at 03:23:27 UTC, Jonathan M Davis wrote:
...
> And for the code that does use classes and actually needs the 
> operators to be virtual, it's trivial to just put the 
> overloaded operator in the base class and then have protected, 
> virtual functions that the derived classes override. It's what 
> you'd do with the NVI (non-virtual inheritance) pattern anyway.

Thanks. Understood. The problemme is just that this solution 
feels like some ugly hack (in Russian language we call it 
"костыль"). But seems that there is nothing to do with this 
already. No matter...


More information about the Digitalmars-d mailing list