chicken-users
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Chicken-users] s11n and tinyclos
From
:
Simon St-Onge
Subject
:
[Chicken-users] s11n and tinyclos
Date
:
Wed, 1 Mar 2006 22:49:31 -0500
Hi,
I am trying to serialize/deserialize a tinyclos object using s11n:
(use s11n)
(use tinyclos)
(use srfi-9)
(define-class <thing> () (element))
(define-method (initialize (thing <thing>) (element <top>))
(slot-set! thing 'element element))
(let ((port (open-output-file "~/local/thing.txt"))
(thing (make <thing> "allo")))
(serialize thing port)
(close-output-port port))
(let ((thing (deserialize (open-input-file "~/local/thing.txt"))))
(instance-of? thing <thing>))
Running this yields the following error:
Error: call-next-method: no methods left: #<procedure (f_1360 . args160)>
Call history:
##sys#require
test2.scm: 5 make
test2.scm: 7 ##tinyclos#add-global-method
test2.scm: 10 open-output-file
test2.scm: 11 make
test2.scm: 8 slot-set!
test2.scm: 12 serialize
test2.scm: 13 close-output-port
test2.scm: 15 open-input-file
test2.scm: 15 deserialize
test2.scm: 16 instance-of? <--
Is this a bug or am I missing something about tinyclos and s11n?
Thanks,
Simon
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Chicken-users] s11n and tinyclos
,
Simon St-Onge
<=
Re: [Chicken-users] s11n and tinyclos
,
felix winkelmann
,
2006/03/06
Re: [Chicken-users] s11n and tinyclos
,
felix winkelmann
,
2006/03/08
Re: [Chicken-users] s11n and tinyclos
,
Kon Lovett
,
2006/03/08
Prev by Date:
Re: [Chicken-users] MINGW Build with make file and no MS Tools
Next by Date:
Re: [Chicken-users] Re: Problem with -DPIC When Building with MinGw
Previous by thread:
[Chicken-users] Chicken 2.3 packages for Ubuntu Breezy
Next by thread:
Re: [Chicken-users] s11n and tinyclos
Index(es):
Date
Thread