<p dir="ltr">Great, thanks.</p>
<div class="gmail_quote">On Jul 29, 2014 10:34 PM, "Matthew Flatt" <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry that I lost track of this one. I've pushed a repair.<br>
<br>
At Tue, 29 Jul 2014 16:26:21 -0700, Sam Tobin-Hochstadt wrote:<br>
> Here's a simpler version of this problem:<br>
><br>
> #lang racket<br>
> (parameterize ([current-namespace (make-base-namespace)])<br>
> (expand (datum->syntax<br>
> #f<br>
> '(module m '#%kernel<br>
> (#%declare #:cross-phase-persistent)))))<br>
><br>
> Sam<br>
><br>
> On Wed, Jul 16, 2014 at 12:59 PM, Sam Tobin-Hochstadt<br>
> <<a href="mailto:samth@cs.indiana.edu">samth@cs.indiana.edu</a>> wrote:<br>
> > Running `expand` on the module defined in `racket/tcp` errors.<br>
> ><br>
> > In transcript form:<br>
> ><br>
> > -> (define p (open-input-file<br>
> > "/home/samth/sw/plt/racket/collects/racket/tcp.rkt"))<br>
> > -> (define mod (read-syntax (object-name p) p))<br>
> > -> (parameterize ([current-namespace (make-base-namespace)])<br>
> > (expand (namespace-syntax-introduce mod)))<br>
> > ; /home/samth/sw/plt/racket/collects/racket/tcp.rkt::2: module: cannot be<br>
> > ; cross-phase persistent due to required modules<br>
> > ; in: (#%module-begin (#%require (all-except (quote #%network)<br>
> tcp-addresses)<br>
> > ; (rename (quote #%network) c:tcp-addresses tcp-addresses)) (#%provide<br>
> > ; tcp-connect tcp-connect/enable-break tcp-listen tcp-close<br>
> > ; tcp-accept-ready? tcp-accept tcp-accept-evt tcp-accept...<br>
> > ; [,bt for context]<br>
> ><br>
> > I don't know why it would do this. The same thing happens with the<br>
> > minimal module that's declared cross-phase persistent.<br>
> ><br>
> > Sam<br>
> _________________________<br>
> Racket Developers list:<br>
> <a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/dev</a><br>
</blockquote></div>