This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Q: Serialization?
- To: Ivan Toshkov <toshkov at crosswinds dot net>
- Subject: Re: Q: Serialization?
- From: brlewis at alum dot mit dot edu
- Date: 21 Mar 2001 11:58:41 -0500
- Cc: kawa at sourceware dot cygnus dot com
- References: <20010321145013.ED5CF4CB9A@member-mx1.crosswinds.net>
Ivan Toshkov <toshkov@crosswinds.net> writes:
> So, the question is: what is serializable in kawa?
This might help answer your question:
(define (serializable? obj) (instance? obj <java.io.Serializable>))
As you'll discover, closures don't claim to be serializable, but some
procedures do.
Lists claim to be serializable; of course that won't work if elements of
the list are not serializable.
I'll write up a quick really-serializable? predicate that tests an
object by serializing/deserializing it.
By the way, is this to store state in files or as "session objects"?
--
Bruce R. Lewis http://brl.sourceforge.net/