[plt-scheme] Web server + serialze problem
(module bad-servlet mzscheme
(require
(lib "serialize.ss")
(lib "servlet.ss" "web-server"))
(provide interface-version timeout start)
(define interface-version 'v1)
(define timeout +inf.0)
(define-serializable-struct foo ())
(define (start req)
(deserialize (serialize (make-foo)))))
(require bad-servlet)
(start '()) -> #<struct:foo>
BUT, if this servlet is run from the web server:
deserialize-info-maker: expects args of type
<struct:deserialize-info>; given instance of a different
<struct:deserialize-info>
What gives?
--
-Alex