[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question about class variables
- To: info-mcl@cambridge.apple.com
- Subject: Question about class variables
- From: jlouch@polyslo.csc.calpoly.edu (John Louch)
- Date: Fri, 28 Feb 92 05:05:48 -0800
Is there a better way to get the value of a class slot (:allocation
:class) than making a temporary instance of the class and then
accessing the slot.
I would rather not do this in another words:
(defclass aclass ()
((arg :allocation :class)))
(setf (slot-value (make-instance 'aclass) 'arg) 'an-argument)
Thanks,
John Louch
jlouch@apple.com
jlouch@polyslo.csc.calpoly.edu
new.guy@applelink.apple.com