[Issue 12892] extern(C): label confined to version scope

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 11 14:50:58 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12892

--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> ---
Currently, extern(Windows) on Win64 will mangle like C.

Unfortunately, extern(Windows) on non-Windows systems will mangle oddly.

So there are multiple solutions:

1. use string mixins as suggested

2. use template mixins as you suggested

3. copy/paste the declarations as you suggested

4. change extern(Windows) on non-Windows systems to mean extern(C)

5. Andrei suggested recognizing:

   version (identifier) { attribute: } else { attribute: }

as special, since currently it has no effect.

What do you think?

--


More information about the Digitalmars-d-bugs mailing list