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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 24 01:31:20 UTC 2019


--- Comment #4 from Manu <turkeyman at gmail.com> ---
Why are you comparing it to a struct with methods?

mixin is not a structured object with methods, and there's no reason to think
those methods should receive a context object and be mangled accordingly.
mixin inserts material into the lexical scope, which in this case is the global
scope. It's the closest thing we have to a macro.

I understand the workaround, but this is broken. It's caught a couple of people
It's embarrassing when people see something that doesn't work with no
reasonable explanation; we have a lot of that, and there's only so many
occurrences people can handle before their confidence is lost.
Easy low-hanging fruit like this is worth fixing, and we can spend our
confidence erosion budget on the real issues.


More information about the Digitalmars-d-bugs mailing list