[plt-scheme] serialization and prefabs

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Mar 17 10:45:59 EDT 2008

At Mon, 17 Mar 2008 03:48:49 -0400 (EDT), Dimitris Vyzovitis wrote:
> don't play very well together...
> 
> > (define-struct test (x y) #:prefab)
> > (serialize (make-test 1 2))
> serialize: expected argument of type <serializable object>; given #s(test 1 2)

I will extend `serialize' when I can. It's easy to add support for
non-cyclic values, but I want to make `serialize' work correctly for
the kind of immutable graph structure that the reader can handle.

Matthew



Posted on the users mailing list.