[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CLOS bug? (Re: Plans for clisp, and pcl vs clisp clos)
Tomohiro Shibata writes:
> (defclass window ()
> (( x :initarg :x :accessor x )
> ( y :initarg :y :accessor y )
> )
> (defmethod x ((win window) &optional newx)
> *** - #<STANDARD-METHOD (#<STANDARD-CLASS WINDOW>)> has 1, but #<GENERIC-FUNCTION X> has 0 optional parameters
Why do you define an accessor X for the slot X of WINDOW as you're
going to redefine at least the read method immediately after?
Maybe you should use a DEFGENERIC before any method X is generated.
Joerg Hoehle.
hoehle@inf-wiss.uni-konstanz.de