Re: [CLOS] Ensuring a method exists
- From: Lars Rune Nøstdal <larsnostdal@xxxxxxxxx>
- Date: Wed, 27 Sep 2006 11:49:49 +0200
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/
.
- Follow-Ups:
- Re: [CLOS] Ensuring a method exists
- From: Lars Rune Nøstdal
- Re: [CLOS] Ensuring a method exists
- References:
- [CLOS] Ensuring a method exists
- From: Didier Verna
- Re: [CLOS] Ensuring a method exists
- From: Lars Rune Nøstdal
- Re: [CLOS] Ensuring a method exists
- From: Didier Verna
- [CLOS] Ensuring a method exists
- Prev by Date: Re: [CLOS] Ensuring a method exists
- Next by Date: Re: [CLOS] Ensuring a method exists
- Previous by thread: Re: [CLOS] Ensuring a method exists
- Next by thread: Re: [CLOS] Ensuring a method exists
- Index(es):