[plt-scheme] writing structures

From: Pedro Pinto (ppinto at cs.cmu.edu)
Date: Mon Jan 20 12:04:51 EST 2003

Hi there,

I am trying to serialize a structure I created using:

(define-struct my-struct (field1 field2 field3))
(define s (make-my-struct 1 2 3))

Ideally I would like to simply use:

(write s port)


(define s (read port))

Is something like this possible? 

Thanks in advance,

Posted on the users mailing list.