chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] s11n and tinyclos


From: felix winkelmann
Subject: Re: [Chicken-users] s11n and tinyclos
Date: Wed, 8 Mar 2006 07:27:59 +0100

On 3/2/06, Simon St-Onge <address@hidden> wrote:
> Hi,
>
>  I am trying to serialize/deserialize a tinyclos object using s11n:
>

Hi, Simon!

Well, looking at the dumped instance with chicken-dump appears
to show something sensible, but the problem lies deeper: TinyCLOS
instances contain direct references to their class, which gets serialized
with the intance itself. But on deserialization, the class loses its identity,
and therefore the whole class-hierarchy of a deserialized instance
is invalid (we have several <class> or <top> classes in the end).
TinyCLOS has no notion of a global class table, which could be used
to map deserialized classes back to their "canonical" (i.e. system-wide)
identity.
So the bottom line is (currently) that instances (and thus classes) can not
be reliably deserialized.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]