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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 24 02:57:31 UTC 2019


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

--- Comment #10 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Manu from comment #9)
> A template mixin with an extern(C) function in it is obviously meant to be
> included at the global scope, why on earth would there be an extern(C)
> function in a template mixin otherwise?

Because there are uses for functions that follow the C ABI. Note that Microsoft
C++ also distinguishes between C mangling and C ABI.

Template mixins were designed so that boilerplate code can be inserted into
many places.

--


More information about the Digitalmars-d-bugs mailing list