May 22, 2004 versioning in struct initialization | ||||
|---|---|---|---|---|
| ||||
Any chance that this will be allowed in the future?
struct foo
{
int x;
int y;
version(Windows) int z;
}
foo xyz = { 1,
2,
version(Windows) 3 // error
};
Paul
| ||||
May 22, 2004 Re: versioning in struct initialization | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Paul Runde | No, but you can do this:
struct foo
{
int x;
int y;
version(Windows) int z = 3;
}
"Paul Runde" <prunde@consolidated.net> wrote in message news:c8m6hb$1nej$1@digitaldaemon.com...
> Any chance that this will be allowed in the future?
>
> struct foo
> {
> int x;
> int y;
> version(Windows) int z;
> }
>
>
> foo xyz = { 1,
> 2,
> version(Windows) 3 // error
> };
>
> Paul
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply