[Cl-perec-devel] [patch] check whether e-s-d type is serializable

Levente Mészáros levente.meszaros at gmail.com
Fri Jun 27 08:16:11 UTC 2008


2008/6/27 Stanislaw Halik <sthalik+perec at tehran.lain.pl>:
> Heya,
>
> After evaluating the following code:
>
>  (defpclass* test-foo ()
>    ((slot-1 :type fixnum)))
>
> the image becomes unusable. MAKE-INSTANCE on any class complains about
> the type even if the class gets purged through #'(setf find-class).
>
> Made a patch chat checks SLOT-DEFINITION-TYPE for
> PERSISTENT-DIRECT-SLOT-DEFINITION by calling UNIT-TYPE-P, thus avoiding
> botching the image.

Thanks for reporting this bug but I'm not sure this is the correct way
to fix it.

I pushed a different one which patches unit-type-p and should allow
using fixnum as a slot type.

BTW we do not use fixnum (that's why it did not work) because that
would create a database/application which is not portable accross
32-bit/64-bit servers.

levy

-- 
There's no perfectoin



More information about the cl-perec-devel mailing list