How to overload opertators for enums

bearophile bearophileHUGS at lycos.com
Tue Jun 26 03:56:12 PDT 2012


Tobias Pankrath:

> When I overload opUnary!("~") in this way, unittests fail.

Currently in D you can only overload struct and class operators.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list