Conditional Compilation with Version

alex ask at nospam.com
Wed Sep 21 19:17:40 PDT 2011


Hi Y'all!! Just as a note, I am new to the news group, but slightly less 
new to D =)

Back on topic:

I am unable to get multiple version specifications to work (from the 
website)

sometihng like:

version (foo) {
    version = bar;
    version = baz;
}
version (bar) {
    ... codes 'n' stuff
}
version (baz) {
    ... more codez
}

every time I get an error which says rhe version statement wants 
(statement), not '=', unlike from the website article on language

is this simply a deprecated feature, or am I doing something wrong?

pssst... I use DMD 2.055 on linux x86 (ubuntu, dont be a hater)


More information about the Digitalmars-d-learn mailing list