[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
call-next-method and arguments to :before and :after methods
- To: John Rose <jrose@Sun.COM>, halasz@SW.MCC.COM
- Subject: call-next-method and arguments to :before and :after methods
- From: David A. Moon <Moon@STONY-BROOK.SCRC.Symbolics.COM>
- Date: Thu, 15 Sep 88 16:00 EDT
- Cc: common-lisp-object-system@SAIL.STANFORD.EDU
- In-reply-to: <8809150010.AA00310@lukasiewicz.sun.com>
It's true that when call-next-method was given the ability to change
the arguments, not all of the places in the CLOS specification that
should have been updated were. Thus some pages don't discuss what
happens in this case. Page 2-11 of 88-002R (describing call-method)
ought to make it clear that when an invocation of call-method is
nested inside an invocation of make-method, the arguments passed
along by call-method are the arguments that were supplied to the
make-method, not the arguments supplied to the original generic
function call. Thus call-next-method in a :around method can
alter the arguments seen by :before and :after methods.
I'll send something about this to the Cleanup committee, after
waiting a few days for comments.