strong enums: why implicit conversion to basetype?

Manfred Nowak svv1999 at hotmail.com
Thu Jan 26 15:15:50 PST 2012


Alvaro wrote:

>  With a non-int-convertible bool your above weird 
> example would not work.

But that the example works is not the fault of the existence of enums. 
It is due to the fact that omission, inclusion or change of one 
character can produce a different value without any warning.

-manfred


More information about the Digitalmars-d mailing list