how do I get only static member of a class?

Marc jckj33 at gmail.com
Wed Jan 3 23:48:23 UTC 2018


I found no way with __traits() on std.traits. I found 
isStaticFunction and isStaticArray but nothing about a member. Is 
this by desgin?

Give a class like:

> class C { static int a, b, c; int d; }

I'd like to get a, b and c.

I'm using this:
> __traits(allMembers, C)


More information about the Digitalmars-d-learn mailing list