samedi 28 mars 2015

How to get all members / functions of a module?


module testmodule;

struct testmodule {}

pragma(msg, __traits(allMembers, testmodule));
pragma(msg, __traits(allMembers, .testmodule));


Prints:



tuple()
tuple()


How do I do it when a declaration in the module has the name of the module?






Aucun commentaire:

Enregistrer un commentaire