get only user-defined members

Marc jckj33 at gmail.com
Sat Dec 16 04:01:10 UTC 2017


how do I from class:

> class Person {
>  string name;
>  int age;
> }

do:

> auto c = [__traits(allMembers, Person)];

then return only ["name", "age"] rather ["name, "age", "ctor", 
"toString" ... ]?


More information about the Digitalmars-d-learn mailing list