[elephant-devel] evaluation of initforms
Ben
ben at medianstrip.net
Sat Nov 13 19:33:07 UTC 2004
yes this is a known bug. (i think this is mentioned this in the docs,
though not the tutorial.)
i don't know how to fix this except to redo the MOP stuff -- e.g. wait
until the next release. there is a test case for it already.
sorry about that. the :initform (error) idiom can be encapsulated in
a macro (though you probably already know that.)
take care, B
On Sat, 13 Nov 2004, Zach Beane wrote:
> It looks like adding the persistent-metaclass metaclass makes a
> defclass form evaluate its initforms at class-definition time. This is
> problematic for a class like:
>
> (defclass user ()
> ((name :initarg :name :initform (error "Required slot")))
> (:metaclass persistent-metaclass))
>
> Is there any way to avoid evaluating the initform at class definition
> time?
>
> Zach
>
>
>
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel
>
More information about the elephant-devel
mailing list