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

--- Comment #10 from Walter Bright <[email protected]> ---
(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.

--

Reply via email to