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

Re: self and CLOS



> You simply have to use the accessors you defined above...
> i.e. the top left bottom and right accessor methods:
> 
> (defmethod draw ((me square-thing) (wind view)
>                   &optional (t (top me)) (l (left me))
>                             (b (bottom me)) (r (right me)))
>  (paint-rect wind l t r b)
>  (frame-rect wind l t r b))

One small nit: T is a constant, so can't be setq'ed or locally bound.