using enums for flags

Trass3r un at known.com
Wed Jan 25 13:47:49 PST 2012


>> Does it really make sense to allow bitwise operations on different  
>> enums?
> Maybe. Certainly sometimes
Examples please.

> but those could just as easily use casts.

Seconded.

I generally don't see any merit in letting enums *implicitly* convert to  
their base type.


More information about the Digitalmars-d mailing list