version and extern problems

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Jul 8 06:57:29 PDT 2007


"Mike Parker" <aldacron71 at yahoo.com> wrote in message 
news:f6pr67$2t00$1 at digitalmars.com...
>
> Then I misunderstood the usage of version. I was under the impression that 
> it's a form of conditional compilation, i.e. on Windows the final result 
> would be
>
> int x;
>
> Is that not possible?

No.  It's a form of conditional compilation, certainly, but it's not just 
like #ifdef.  Everything within a version block must be syntactically valid; 
"int" is not syntactically valid, so you can't put it in the version block. 





More information about the Digitalmars-d mailing list