<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="left"><tt>Hello, I'll repost here my question</tt><tt>
from SO:</tt><br>
</div>
<tt><br>
</tt>
<div class="post-text" itemprop="description">
<pre><code>#lang racket
(define-signature asdf^
(some-class%))
(define-unit asdf@
(import)
(export asdf^)
(define-serializable-class some-class%
(class object%
(inspect #f)
(super-new))))
</code></pre>
<p><tt>returns error</tt></p>
<pre><code>define-serializable-class: allowed only at the top level or within a module top level
</code></pre>
<p><tt>which is indeed expectable according to </tt><tt><a
href="http://docs.racket-lang.org/reference/objectserialize.html"
rel="nofollow"></a></tt><tt>documentation.
<br>
I use units for resolving mutually dependent definitions
(inside procedures bodies). What alternatives do I have to
perform my task? I could run with merging those units or
implementing my own serialization protocol, but it is not good
enough for me.<br>
<br>
</tt></p>
</div>
<tt><br>
</tt>
</body>
</html>