Struct definition after static if

Simen kjaeraas simen.kjaras at gmail.com
Mon Dec 14 15:20:07 PST 2009


Zarathustra <adam.chrapkowski at gmail.com> wrote:

> Thanks Simen. I hoped D will be bugless and static if will be possible  
> inside enums.

Static if will probably never be usable inside enums. The best way to
get something like it - at least currently - is to use string mixins
and/or the defineEnum template in std.typecons.

-- 
Simen


More information about the Digitalmars-d-learn mailing list