[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: redefining methods



    However, if I try to redefine a method that's already loaded, the system
    complains saying "Error: HIGHLIGHT-CHOSEN-ITEM already names an ordinary 
    function or a macro, it can't be converted to a generic function.
    Error signalled by LOAD-DEFMETHOD.

  I can't reproduce this error here.  Certainly people redefine methods
  all the time, since that is the basic programming loop.

I do remember getting the error from a file in which there were no "ordinary
functions," just classes & methods, in which I kept redefining names and
generated some confusion. You can get the error like this:

(defun foo () nil)
(defclass baz () ((s :accessor foo)))

-Eliot