digitalmars.D - versioning in struct initialization
- Paul Runde (12/12) May 21 2004 Any chance that this will be allowed in the future?
- Walter (9/21) May 21 2004 No, but you can do this:
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 21 2004
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
May 21 2004