Operator overloading of native types?

bearophile bearophileHUGS at lycos.com
Thu Dec 13 15:35:59 PST 2012


H. S. Teoh:

> but apparently operator overloading doesn't work at the package 
> level?

In D the overloaded operators need to be defined inside 
structs/classes.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list