Calling specific method

"Erik Ronström (as erik dot ronstrom at doremir dot com)" <[email protected]> Fri, 17 Apr 2026 15:41:35 +0200
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
Hi,

(defclass a ()
   )

(defclass b (a)
   )

(defclass c (b)
   )

(defmethod some-method ((obj a))
   ; Do something
   )

(defmethod some-method ((obj b))
   ; Do something different
   )

(defmethod some-method ((obj c))
   (call-next-method))  ; <-- this will call some-method for class b

 From some-method for class c, is it possible to explicitly call the method for class a rather than b?

Erik

   

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html