Daniel Ribeiro Maciel schrieb:
>
 void main() {
     enum string[] members = __traits(allMembers, Foo );
     foreach( member; members )
         writeln( typeid(typeof(__traits(getVirtualFunctions, Foo, member) )) );
}

Is that possible?


__traits is a really immature thing.

There's this bug that's been existing since ages:
http://d.puremagic.com/issues/show_bug.cgi?id=1386

I posted a strange workaround there. Don't know if it works for getVirtualFunctions as well though.

Reply via email to