Struct definition after static if

Zarathustra adam.chrapkowski at gmail.com
Mon Dec 14 14:27:00 PST 2009


Simen kjaeraas Wrote:
 
> Looks to me like a forward reference problem. Sadly, there
> still are some of those in the language.
> 
> Yes. http://www.digitalmars.com/d/2.0/faq.html#anonymous
> 
> 
> struct Foo
> {
>      union { int a; int b; }  // I HAZ NO NAYM
>      struct { int c; int d; } // I HAZ NO NAYM
> }
> 
> -- 
> Simen

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

Best regards



More information about the Digitalmars-d-learn mailing list