HibernateD and DDBC - ORM and DB abstraction layer for D

Dicebot m.strashun at gmail.com
Fri Apr 5 10:17:57 PDT 2013


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) ) {
---



More information about the Digitalmars-d-announce mailing list