Re: tupleof for inherited classes.

2012-07-25 Thread Chris NS
I know you specifically asked for a way to do this without templates, but this was my first thought on how to make it work (and I confirmed it): ## import std.stdio , std.traits ; class Engine { int publicField ; void enumFields ( this Self )

tupleof for inherited classes.

2012-07-24 Thread mrdarksys
[Problem] How can I use enumFields() function of Engine class for enumerate all fields of inherited classes? I want to do without templates if possibly. Code [example]: // import std.stdio; class Engine { public: int publicField; void enumFields() {