C header file: tagged enumerations
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Apr 26 16:40:24 PDT 2016
On Tuesday, 26 April 2016 at 23:33:08 UTC, Stefan Koch wrote:
> static if (win32msi >= 500) .....
Won't work here because static if must have a complete
declaration inside it, and the C pattern only has a few elements
of the whole inside each #if.
D doesn't handle this C pattern well... you basically have to
rewrite the whole thing for each version.
Personally, I just decide to support all of them and say the
older versions with less declarations are less supported...
More information about the Digitalmars-d-learn
mailing list