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, 29 Oct 2008 16:19:10 +0100

On Fri, Oct 24, 2008 at 7:43 AM, Shawn Rutledge
<address@hidden> wrote:
>>
>> Or anything that has a global identity, beyond built-in. Need some kind of
>> '(remain <object>)' to designate existing "root" objects, i.e. objects that
>> will exist when the de-serialization occurs. How to handle the "root"
>> dependency is unspecified.
>
> That was a long time ago... now I just found myself wanting to try
> this too.  The behavior is different:
>
> #;1> (use s11n)
> ; loading /usr/lib64/chicken/3/s11n.so ...
> #;2> (use tinyclos)
> ; loading /usr/lib64/chicken/3/tinyclos.scm ...
> ; loading /usr/lib64/chicken/3/tinyclos-base.so ...
> #;3> (define-class <thing> () (element))
> #;4> (define-method (initialize (thing <thing>) (element <top>))
>  (slot-set! thing 'element element))
> #;5> (let ((port (open-output-file "~/thing.txt"))
>      (thing (make <thing> "allo")))
>  (serialize thing port)
>  (close-output-port port))
> Error: (serialize) unable to serialize object - unable to serialize
> procedure (no table entry found): #<procedure (f_5740)>

This means that no entry is stored in the local "procedure table".
What's the output of "chicken -version"? Does it show "ptables"?


cheers,
felix




reply via email to

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