Re: [CLOS] Ensuring a method exists



On Wed, 27 Sep 2006 14:11:54 +0200, Didier Verna wrote:

Lars Rune Nøstdal <larsnostdal@xxxxxxxxx> wrote:

Hm, ok - maybe something like this:

(dolist (class (sb-mop:class-direct-subclasses (find-class class)))

Yup, that's the kind of thing I was looking for, thanks. Actually,
I'll use class-direct-SUPERclasses to go up the hierarchy, and also filter out
(find-class 'standard-object) from the check list. But that's the idea.

When moving upwards while only looking upwards you'll miss the branches
passing along "beside" you as you head for the top .. I think you'll
figure this stuff out however .. :)

--
Lars Rune Nøstdal
http://lars.nostdal.org/

.



Relevant Pages