digitalmars.D.learn - Conditional Compilation with Version
- alex (20/20) Sep 21 2011 Hi Y'all!! Just as a note, I am new to the news group, but slightly less...
- Timon Gehr (3/23) Sep 22 2011 Probably, the problem is that you try to set versions in function scope....
- alex (2/2) Sep 23 2011 Ohhhh... So I if it is in my main function (which I think it is) I shoul...
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)
Sep 21 2011
On 09/22/2011 04:17 AM, alex wrote:
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)
Probably, the problem is that you try to set versions in function scope.
That does not work, version=foo; declarations must be at module scope.
Sep 22 2011
Ohhhh... So I if it is in my main function (which I think it is) I should move it out? That makes sense... Thank you Timon!!
Sep 23 2011








alex <askme nospam.com>