PhobosWatch: manifest => enum
Sascha Katzner
sorry.no at spam.invalid
Sun Dec 30 04:36:41 PST 2007
Walter Bright wrote:
> Anonymous enums don't have a type (and didn't in D1.0, either). There's
> no way to get a grip on such a type anyway, as it has no name and:
> enum { FOO, BAR } x;
> style declarations are not allowed in D.
Now I'm confused. I thought an anonymous enum was an enum without a
name. But it is entirely possible to create an anonymous enum with a
type, for example:
enum : uint {red, green, blue}
At least I use that kind of enums a lot and I allways thought of these
as anonymous enums.
I call enums without a type "typeless enums".
LLAP,
Sascha Katzner
More information about the Digitalmars-d
mailing list