[Openmcl-devel] DEFMETHOD buglet?

Tim Bradshaw tfb at tfeb.org
Sat Sep 11 06:18:20 PDT 2010


If you evaluate this in a listener it causes a warning, about FOO not being known.  I don't think it should, and it doesn't when compiling a file.

? (defmethod bog ((x cons))
    (bog (car x)))
;Compiler warnings :
;   In (bog (cons)) inside an anonymous lambda form: Undefined function bog
#<standard-method bog (cons)>
? (defmethod bog ((x cons))
    (bog (car x)))
#<standard-method bog (cons)>
? 

I tried to understand what is going on but I can't work it out easily - I guess the method is being compiled before the GF is installed somehow.


More information about the Openmcl-devel mailing list