EnumBaseType conversion

bearophile bearophileHUGS at lycos.com
Tue Jun 16 10:01:49 PDT 2009


Robert Fraser:
> typedef int _MyEnum;
> enum MyEnum : _MyEnum
> {
> 	FOO,
> 	BAR
> }

Isn't it better for all enums to behave like this (and require a cast to be used as their base types)?

Bye,
bearophile



More information about the Digitalmars-d mailing list