Luke Gorrie luke@bluetail.com writes:
The idea of NO-APPLICABLE-METHOD was t'be sure that a "real" definition would override the default one. Could we do this using normal methods? (I'm not wise in the ways of CLOS.)
I think so. If we don't specialize any argument all other method would be more or equal specific. More specific methods should be called first and equally specific methods redefine the default implementation.
We could invent a macro like DEFSLIMEGENERIC, or something with a shorter name. Probably not a bad idea, because some of the generic functions are called in swank.lisp and others by Emacs directly.
Or how about:
(slimefun foo) (defgeneric foo ....)
(slimefun bar) (defun bar ....)
How about:
(defslime (fun bar) ..) (defslime (generic bar) ..) (defslime (var bar) ..)
:-)