Traits problem

Trass3r mrmocool at gmx.de
Sat Jan 2 03:53:56 PST 2010


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.



More information about the Digitalmars-d mailing list