Overriding describe
Posted: Thu Aug 20, 2015 6:16 pm
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:
I fall in the debugger mode with the error:
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:
Code: Select all
(defclass my-class () ())
(defmethod describe ((obj my-class)))
It 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?CLISP: Describe does not name a generic function
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 :)