Are anonymous enums mostly available for performance reasons?

strtr strtr at spam.com
Fri Apr 2 15:13:06 PDT 2010


BobR Wrote:

> When are anonymous enums preferred over named enums? Maybe they are in 
> the language for historical reasons? Or are they truly useful enough to 
> warrant having a 2 kinds of enums? 
> 

I use them encapsulated within a struct to make small ranged named types.
StructName.POSSIBLE_VALUE



More information about the Digitalmars-d mailing list