[slime-devel] Question about useage

This is probably a dumb question, but I haven't been able to figure it out yet. If I'm working with Slime and have defined some method functions for CLOS objects and want to change the number of arguments, when I go to compile one it objects with something like: "Attempt to add the method #<Standard-Method LIST-PARMS (TRACK-CLASS) {48BAC95D}> to the generic function #<Standard-Generic-Function LIST-PARMS (6) {484A09A1}>." I knew that. I was trying to change them all. Is there a way to clear the existence of these functions from lisp's "memory" and start over? Or do I have to kill the session and start it up again? Thanks. --Jeff

On Apr 9, 2005, at 10:41 PM, Jeffrey Cunningham wrote:
I knew that. I was trying to change them all. Is there a way to clear the existence of these functions from lisp's "memory" and start over? Or do I have to kill the session and start it up again?
The SLIME inspector lets you remove methods.

Jeffrey Cunningham <jeffrey@cunningham.net> writes:
This is probably a dumb question, but I haven't been able to figure it out yet. If I'm working with Slime and have defined some method functions for CLOS objects and want to change the number of arguments, when I go to compile one it objects with something like:
"Attempt to add the method #<Standard-Method LIST-PARMS (TRACK-CLASS) {48BAC95D}> to the generic function #<Standard-Generic-Function LIST-PARMS (6) {484A09A1}>."
I knew that. I was trying to change them all. Is there a way to clear the existence of these functions from lisp's "memory" and start over? Or do I have to kill the session and start it up again?
Methods are added to generic functions, unless their lambda lists are not congruent. To change a generic function's signature, redefine the generic function using DEFGENERIC, or (a slightly bigger hammer) remove the symbol naming the current one and recompile it and all its callers. Christophe
participants (3)
-
Christophe Rhodes
-
David Steuber
-
Jeffrey Cunningham