pragma mangle on extern(C) in function body
Sebastiaan Koppe
mail at skoppe.eu
Wed Jan 16 20:07:36 UTC 2019
On Wednesday, 16 January 2019 at 19:59:02 UTC, Steven
Schveighoffer wrote:
> I'm guessing it's a missed case in the compiler, and not
> intentionally omitted.
>
> -Steve
The workaround is quite silly. Seems like a parser issue.
---
pragma(mangle, "Foo")
extern(C) void foo();
mixin template T()
{
pragma(mangle, "Bar")
extern(C) void bar();
}
void main() {
mixin T!(); // Hurrah!
}
---
More information about the Digitalmars-d-learn
mailing list