[plt-scheme] Data Serialisation
Jens Axel Søgaard
jensaxel at soegaard.net
Fri Aug 10 16:58:33 EDT 2007
Justin Paston-Cooper wrote:
> Hello and thank you for the reply. I just tried print-convert, but it is
> converting my structs to (make-log-datum ...) and not the full form that
> it should be. Could there be any reason for this?
Yes, you need to make an a new inspector, when you define your struct.
(require (lib "pconvert.ss"))
(define-struct foo (bar baz) (make-inspector))
(print-convert (make-foo 1 "2"))
--
Jens Axel Søgaard
More information about the plt-scheme
mailing list