[plt-scheme] Web server + serialze problem

From: Alexander Friedman (alex at inga.mit.edu)
Date: Tue May 3 01:14:50 EDT 2005

(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



Posted on the users mailing list.