From: Stefan Matthias Aust Date: 2001-05-30T07:41:31+09:00 Subject: [ruby-talk:15974] Re: How to enumerate known subclasses? matz@zetabits.com (Yukihiro Matsumoto) wrote: >How about making a class/module relation table at first by enumerating >all classes/modules, then keeping the table up-to-date by hooking >"inherited" and "append_features" (or "included" in 1.7)? Sure. That could be easily added but are there any arguments against automatically maintaining a subclasses array for each class. Smalltalk does it that way. And what's about allInstances, a way to efficently enumerate only the instances of a given class. Any thoughts on that topic? bye -- Stefan Matthias Aust \/ Truth Until Paradox