[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
WITH-ADDED-METHODS
- To: common-lisp-object-system@SAIL.STANFORD.EDU
- Subject: WITH-ADDED-METHODS
- From: Dick Gabriel <RPG@SAIL.STANFORD.EDU>
- Date: 08 Sep 87 1221 PDT
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-