On Sun, Jul 4, 2010 at 12:55, Simen kjaeraas <[email protected]> wrote:

>
> __traits[1] is your friend in these matters.
>>
>> __traits( allMembers, Foo ) returns a tuple of string literals, each of
>> which corresponds to a member of Foo.
>>
>
>
Somehting I discovered today: it works for module names, also:

auto ioMembers = __traits(allMembers, std.stdio);

It also contains the unittests... Hmm, I wonder what one can do with that.


Philippe

Reply via email to