(require mzlib/serialize) |
NOTE: This library is deprecated. Use racket/serialize instead.
The mzlib/serialize library provides the same bindings as racket/serialize, except that define-serializable-struct and define-serializable-struct/versions are based on the syntax of define-struct from mzscheme.
syntax
(define-serializable-struct id-maybe-super (field-id ...) maybe-inspector-expr)
syntax
(define-serializable-struct/versions id-maybe-super vers-num (field-id ...) (other-version-clause ...) maybe-inspector-expr)
id-maybe-super = id | (id super-id) maybe-inspector-expr =
| inspector-expr other-version-clause =
(other-vers make-proc-expr cycle-make-proc-expr)
Like define-serializable-struct and
define-serializable-struct/versions, but with the syntax of
closer to define-struct of mzscheme.