enum values without initializer

bearophile bearophileHUGS at lycos.com
Sat Apr 3 07:43:26 PDT 2010


Do you know why this is an error?

struct Foo {}
enum Foo f;
void main() {}


I think there's no need to consider it an error (and it can't cause runtime bugs):
http://d.puremagic.com/issues/show_bug.cgi?id=4049

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list