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

--- Comment #21 from Dennis <[email protected]> ---
(In reply to Walter Bright from comment #3)
> But there's another way you can do it:
> 
>   mixin template M()
>   {
>     export extern(C) pragma(mangle, "fun") void fun() {}
>   }
>   mixin M!();
> 
> which will work.

That works ad-hoc because C mangling is relatively easy, but it asks the user
to maintain their own C mangling logic, while the compiler should (and does)
provide that.

--

Reply via email to