Re: Constructor -- lambda expression
Jan Moringen <[email protected]> Sat, 29 May 2010 22:07:25 +0200
| Newsgroups | gmane.emacs.eieio |
|---|---|
| Message-ID | <10519_1275163647_ZZh0045~NxZg1.00_1275163645.3678.47.camel@localhost.localdomain> |
Hi Frank. > 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? I'm not entirely sure, but I think that behavior has been obsoleted. Jan ------------------------------------------------------------------------------