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

--- Comment #6 from Walter Bright <[email protected]> ---
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?

--

Reply via email to