std.reflection prototype

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 4 12:49:09 PDT 2015


One more question:

Does anyone know why TypeInfo_class.getMembers() was removed? [1]

I found an old post saying that it never worked and returned an 
empty array, so that is most likely the answer, but although 
getMembers was removed, Walter seems to have left behind the 
classes MemberInfo, MemberInfo_field, and MemberInfo_function, so 
I'm guessing there is still hope of having them implemented one 
day. [2]

[1] 
https://github.com/D-Programming-Language/druntime/commit/f957b4ef7222bae5da7f3b4104ab42061dd41319#diff-7eac7eb46e31907f148813e793155274

[2] 
https://github.com/D-Programming-Language/druntime/blob/bd3f4cb2122edd1a7c107f86936c20bba15191b6/src/object.di#L276


More information about the Digitalmars-d mailing list