On Fri, Nov 13, 2009 at 10:42 AM, Matthew Mondor mm_lists@pulsar-zone.net wrote:
Hello,
I noticed lately (using CVS HEAD slime) with CVS HEAD ECL the following error when attempting to define a PRINT-OBJECT method at the REPL:
(defmethod print-object interrupted:
In function SYMBOL-NAME, the value of symbol is #<STANDARD-GENERIC-FUNCTION PRINT-OBJECT> which is not of expected type SYMBOL [Condition of type SIMPLE-TYPE-ERROR]
Backtrace: 0: #<bytecompiled-function 097c4d70> Locals: SWANK::OPERATOR = DEFMETHOD SWANK::ARGUMENTS#1 = (PRINT-OBJECT #S(SWANK::ARGLIST-DUMMY :SWANK::STRING-REPRESENTATION "")) #:G4793#2 = (DEFMETHOD PRINT-OBJECT ..) SWANK::GF-NAME#3 = PRINT-OBJECT SWANK::GF#4 = #<STANDARD-GENERIC-FUNCTION PRINT-OBJECT> 1: #<bytecompiled-function ARGLIST-FROM-FORM> Locals: SWANK::FORM = (DEFMETHOD PRINT-OBJECT ..) 2: #<bytecompiled-function YIELD> 3: #<bytecompiled-function GROVEL-FORM> 4: #<bytecompiled-function FIND-SUBFORM-WITH-ARGLIST> 5: #<bytecompiled-function 097c4a78> 6: #<bytecompiled-function ARGLIST-FOR-ECHO-AREA> 7: #<bytecompiled-function BYTECODES> [...]
The same actually happens whenever a generic function exists for the method being created. I have the impression a value which shouldn't be evaluated is, although I didn't look into the related swank-ecl code yet. Possibly someone else already knows exactly what's happening?
This was fixed by the patch Andy Hefner sent, it's already applied to CVS.