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

WITH-ADDED-METHODS



There is, I think, a better syntax for WITH-ADDED-METHODS
than what Danny sent out. That syntax was one we discussed
in the context of a slightly different semantics.

(with-added-methods ((foo (...)...)
		     (bar (...) ...)
		     (bar (...) ...)
		     (foo (...)...)
 <body>)

This takes the possibly already existing generic functions, FOO and BAR,
copies them, adds the new methods to them as specified, and then
executes <body>.

If no generic function exists, it is created. Previously defined generic
functions are not altered by the action of this construct.

The bindings of FOO and BAR have indefinite extent.

			-rpg-