Good evening every one, as promised I'm here again :D
I'm having little troubles in trying to override the definition of the describe generic function... reading Sonja's book it seems she can do it without any problems so maybe I'm doing something wrong... I've tried the same way on different implementations and always get the same error, simply typing:
As ever, thanks and greetings :)
I'm having little troubles in trying to override the definition of the describe generic function... reading Sonja's book it seems she can do it without any problems so maybe I'm doing something wrong... I've tried the same way on different implementations and always get the same error, simply typing:
(defclass my-class () ())
(defmethod describe ((obj my-class)))
I fall in the debugger mode with the error:
CLISP: Describe does not name a generic functionIt actually seems that describe isn't a generic function and that its value is bounded someway... nevertheless Sonja suggests as good practice its redefinition. How to handle it?
Clozure: The function DESCRIBE is defined as something other than a generic function
SBCL: Describe already names an ordinary function or a macro
As ever, thanks and greetings :)