On Friday, 5 April 2013 at 16:41:53 UTC, Vadim Lopatin wrote:
I'm iterating through class members using __traits(allMembers, T), then accessing member using _traits(getMember,T,memberName)

I'm not sure which one of the members with the same name will be returned by getMember... Property getter and setter have the same name...

Is there any better way to iterate through members of class?

Quoting vibe.d again :)

---
foreach( member; __traits(allMembers, T) ) {
    foreach( overload; MemberFunctionsTuple!(T, method) ) {
---

Reply via email to