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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #8 from [email protected] ---
It's a bit ironic, but perhaps reading this might help explain why what you
proposed doesn't work:

https://wiki.dlang.org/User:Quickfur/Compile-time_vs._compile-time

OTOH, why not just make the module name a template parameter? That would
sidestep the issue:

----
struct Module(string name)
{
    string[] allMembers() {
        enum impl = __traits(allMembers, name);
        return impl;
    }
}
----

--

Reply via email to