HibernateD and DDBC - ORM and DB abstraction layer for D

Vadim Lopatin coolreader.org at gmail.com
Fri Apr 5 10:25:35 PDT 2013


On Friday, 5 April 2013 at 17:18:01 UTC, Dicebot wrote:
> 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) ) {
> ---

Thanks a lot! It looks like Vibe is a good source :)


More information about the Digitalmars-d-announce mailing list