Re: [CLOS] Ensuring a method exists



On Wed, 27 Sep 2006 11:17:57 +0200, Didier Verna wrote:

So imagine having A <- B and creating only instances of B. The lack of method
for class A would go unnoticed. But I want the check for the whole hierarchy
(consider for instance that I'm using the AND method combination type and I'm
expecting an implementation for all the classes).

Oh, the one I just posted only checks downwards from the instantiated - I
guess you could walk from the base at the very top each time.

Just change the last line in `initialize-instance', like this I think:

(checkHierarchy 'SomeBase)))

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

.