drkm writes:
> Accessors for slots whose the allocation slot option is :class would
> have to be :static methods, wouldn't they?
Sorry, I didn't give any reproductible problem. Here it is:
(defclass A ()
((:slot :initform nil
:accessor A-slot
:allocation :class)))
(A-slot (A nil))
(A-slot A)
The first call success (strangely, regarding the fact static methods
don't works with instances :-p). But not the second one:
Debugger entered--Lisp error: (no-method-definition A-slot (A))
Regards,
--drkm
|