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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 24 09:53:58 UTC 2019


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

ponce <aliloko at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aliloko at gmail.com

--- Comment #15 from ponce <aliloko at gmail.com> ---
Nice to see an explanation for this.

> You can also use:
> enum M = "export extern(C) void fun() {}";
> mixin(M);


We do use the string mixin workaround for years, it hasn't been a huge problem,
just a minor surprise. Meh.

--


More information about the Digitalmars-d-bugs mailing list