loop through specific class members
Daniel Keep
daniel.keep.lists at gmail.com
Mon Jan 19 07:38:49 PST 2009
Trass3r wrote:
> Is there any way to loop through specific members of a class, e.g. all
> public functions?
> I've already seen a function getMembers in druntime's ClassInfo class
> but I can't find anything related to the attributes there.
Assuming you're using D2, http://digitalmars.com/d/2.0/traits.html might
prove to be of interest.
-- Daniel
More information about the Digitalmars-d-learn
mailing list