Compound assignment operators

bearophile bearophileHUGS at lycos.com
Wed Aug 25 23:34:17 PDT 2010


Yao G.:
> Is there a way to make this work? Even changing the operator string in  
> opBinary to "-" doesn't do nothing. Or those kind of operators can't be  
> overloaded?

Try opOpAssign.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list