Re: Question about call-next-method
"Bradford Miller (as bradford dot w dot miller at gmail dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
I think the real test would be what happens if you either undefine or modify the method it would have called, or add an extra more specific method that call-next-method would invoke had it been called afterwards. Does it act as it would if called now, or then? And are all “common lisps” the same? > On Nov 16, 2025, at 6:55 AM, Tim Bradshaw (as tfb at cley dot com) <[email protected]> wrote: > > On 16 Nov 2025, at 02:33, Edward Kiser (as edkiser at gmail dot com) <[email protected]> wrote: >> >> The Common Lisp HyperSpec says, "The function call-next-method has >> lexical scope and indefinite extent, and can only be used within the >> body of a method defined by a method-defining form." > > I think this is like saying that it's like a binding established by LET, (absent special declarations). So yes, you can call it later if you've captured it. > > _______________________________________________ > 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