[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no-next-method lexical function

This seems like a special case of no-applicable-method which could be
handled by providing another method on no-applicable-method which
discriminated on a function object rather than generic function:

(defmethod no-applicable-method ((called-function function) &rest arguments)

  (error "No applicable method when ~S was called with arguments ~S.~%"
	 called-function arguments

If call-next-method failed to find a next method, the error message would
print showing that the function called was call-next-method and the

Seems a better idea to use oo-programming in this case (specializing the
more general case) than to add another function, but I'm not opposed to
that if the rest of the committee feels it is a better idea.