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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 25 15:01:48 UTC 2019


--- Comment #23 from Dennis <dkorpel at live.nl> ---
(In reply to anonymous4 from comment #22)
> (In reply to Dennis from comment #20)
> > Can you give an example where the proposed behavior would be problematic?
> Any callback. E.g.
> https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/
> ms633573%28v=vs.85%29

We're specifically looking for a situation where:
1 you have a C-ABI callback-only function
2 but it's not anonymous
3 and it's in a mixin template
4 which is mixed in at global scope
5 and its name clashes with other extern(C) functions / you want to mix it in
multiple times

Has anyone ever made a mixin template that mixes in a non-anonymous WindowProc
resulting in clashing names? So far this situation is only hypothetical, while
there are numerous instances of users running into the situation where they
want a C-mangled mixin template:

DPlug, Excel-D, this issue, https://issues.dlang.org/show_bug.cgi?id=962 and


More information about the Digitalmars-d-bugs mailing list