[rucksack-devel] Enhancements - Code?

Arthur Lemmens alemmens at xs4all.nl
Wed Jun 1 11:41:45 UTC 2011


On Wed, 01 Jun 2011 10:26:41 +0200, Phil Marneweck <haragx at gmail.com>  
wrote:

> Is this (taken from the comments in searialize.lisp) still true? That
> option 3 is used?

Yes, that's still true.  (In this context, 'object' means some kind of
CLOS instance that's not an instance of PERSISTENT-OBJECT or  
PERSISTENT-DATA.)

Arthur


> What do we do when we serialize an object and it turns out to contain
> other objects?  There are a few options:
> 1. Don't allow it: this should be dealt with at a higher level
> 2. Automatically add the child object to the cache: that means it
>    will be saved and we'll get an object-id for the child.  But what if
>    the child was already in the cache?  We have no way of knowing that
>    and we'll probably create a mess.
> 3. Just serialize the contents.  This basically assumes that this is the
>    only reference to this objects; or, if it isn't, that it doesn't
> matter
>    if we create more than one copy of this object when we deserialize
>    it (and that object identity is irrelevant).
> I think I'll go for option 3.




More information about the rucksack-devel mailing list