loop through specific class members

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Jan 20 08:50:44 PST 2009


On Tue, Jan 20, 2009 at 10:29 AM, Trass3r <mrmocool at gmx.de> wrote:
> It seems like there is no way to automatically get the class methods in D1
> currently?!
> __traits isn't supported, std.traits doesn't give anything usable, .tupleof
> only gets the fields (plus only giving an ExpressionTuple for classes).

You're correct.  __traits was introduced in D2 mostly because D1's
compile-time introspection is so paltry.


More information about the Digitalmars-d-learn mailing list