[Issue 20012] export inside mixin doesn't seem to work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 24 03:16:15 UTC 2019


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

--- Comment #12 from Manu <turkeyman at gmail.com> ---
And if there are extern(C) functions in the boilerplate, then ***THERE ARE
EXTERN(C) FUNCTIONS IN THE BOILERPLATE***. That's literally what we are talking
about!

You can't change the names of extern(C) functions, or they don't work.

There is absolutely no conceivable use for an extern(C) function that has been
mangled with a bizarre scheme that you can't even declare.
The function has been mangled, and there is literally no way to call it, or
produce a C declaration that matches the function name, because you can't know
what it is.

I'm telling you what extern(C) functions in mixin templates are for, and you're
telling me I'm wrong, you don't accept practical real-world software as
evidence if its value, and instead insist that this bizarre choice of renaming
the function to an un-knowable name is absolutely the proper thing to do?

--


More information about the Digitalmars-d-bugs mailing list