Iterate module membres

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 7 02:16:59 PST 2017


On Saturday, 7 January 2017 at 09:46:54 UTC, crimaniak wrote:
> Hi!
>
> I need to iterate module members and find specific classes (and 
> make tuple).
>
>     class foo{};
>     pragma (msg, __traits(allMembers,mixin(__MODULE__)));
>
> gives me empty tuple.

works like a charm both in 2.071 and in git HEAD.


More information about the Digitalmars-d-learn mailing list