Re: Calling specific method
"Toomas Altosaar (as toomas dot altosaar at gmail dot com)" <[email protected]> Fri, 17 Apr 2026 17:23:08 +0300
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
Use find-Metrodome > On 17. Apr 2026, at 16.42, Erik Ronström (as erik dot ronstrom at doremir dot com) <[email protected]> wrote: > > 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 _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html