an enum inside another enum

Simen Kjaeraas simen.kjaras at gmail.com
Thu Jul 26 06:22:40 PDT 2012


On Thu, 26 Jul 2012 15:07:56 +0200, bearophile <bearophileHUGS at lycos.com>  
wrote:

> but isn't D supporting mixins inside enums?

Nope. "The text contents of the string must be compilable as a valid  
StatementList, and is compiled as such."

And enums don't allow statements in their body.

-- 
Simen


More information about the Digitalmars-d-learn mailing list