[Issue 18698] static foreach + __traits(allMembers, moduleName)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 10 19:38:46 UTC 2018


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

--- Comment #16 from Manu <turkeyman at gmail.com> ---
I remember my work-around; I ran the foreach inside a static module
constructor!
>From there I generated my reflection information about the module and
registered it at runtime (in the module constructor), rather than emit data
directly into the module scope.

In this instance, I really need to emit functions into the module scope, and
not do runtime registration like I did last time.
It would be really really nice to fix this issue!

--


More information about the Digitalmars-d-bugs mailing list