Constructor -- lambda expression

Frank <[email protected]> Sat, 29 May 2010 13:44:17 -0600
Newsgroups gmane.emacs.eieio
Message-ID <[email protected]>
Hey there again,

Another question:

(defclass foo ()
  ((bar :initform (lambda () (make-vector 10 nil)))))

(make-instance 'foo)
;; results in [object foo "foo" (lambda nil (make-vector 10 nil))]

Isn't the lambda expression of the :initform supposed to be evaluated at 
instantiation time?


------------------------------------------------------------------------------