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

initform bug




Initforms on slots allocated on a class are NOT getting evaluated.



==> (defclass heart ()
      ((color :initform 'red :allocation :class))
      (:accessor-prefix nil))     
#<Class HEART 32162260>

==> (setq h (make-instance 'heart))
#S(HEART)

==> (color h)
(QUOTE RED)

-------