Bug 3999 and 4261

Don nospam at nospam.com
Thu Sep 2 14:10:50 PDT 2010


so wrote:
>> Does this mean no more defining bits as enums?
> 
> Now that would be brutal, it is one of the best use cases of enum if not 
> the best...

Yes.
I reckon, if an enum doesn't explicitly define the value of each member, 
it shouldn't implicitly convert to int -- and it should not be possible 
to treat it as bits.

OTOH if each member has an explicitly defined value, it's reasonable to 
perform logical operations on it.




More information about the Digitalmars-d mailing list