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

hst...@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hst...@quickfur.ath.cx

--- Comment #8 from hst...@quickfur.ath.cx ---
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