Using traits get a list of methods and filter out the member vars.

Dicebot public at dicebot.lv
Sun Sep 8 06:48:51 PDT 2013


Key part here is "is(T == function)" - because of D type system 
funny properties only possible way to get T that matches that 
condition is to do `typeof` from declared function/method symbol. 
That type can't be manually expressed and thus used for member 
variable.


More information about the Digitalmars-d-learn mailing list