On Tue, Dec 9, 2008 at 6:52 PM, Didier Verna <didier.verna@...> wrote:
> (declaim (optimize (speed 0) (safety 3)))
> (defclass test ()
> ((slot :allocation :instance :type single-float :initform "barf ?")))
> making an instance of test barfs, as expected. However, turn the slot
> allocation to :class, and the type checking is gone. Is there a
> rationale behind this ?
It was a bug, fixed in 126.96.36.199. Though possibly contrary to
expectations, for :class the :initform type error will be signalled at
class definition time. (CLSH 7.1 allows this.)
Thanks for the report!