Are anonymous enums mostly available for performance reasons?
dsimcha
dsimcha at yahoo.com
Fri Apr 2 14:28:00 PDT 2010
== Quote from BobR (brhodes at simple.access.com)'s article
> 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?
IMHO anonymous enums are useful just to save typing. When the name of the enum is
unique and self-explanatory enough, I don't want the verbosity of putting it in
its own namespace.
More information about the Digitalmars-d
mailing list