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

Question about class variables



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