[racket] Confused about submodule + state

From: Asumu Takikawa (asumu at ccs.neu.edu)
Date: Sat Apr 12 23:37:27 EDT 2014

On 2014-04-12 15:43:19 -0600, Matthew Flatt wrote:
> Possibly, you're expecting
>  (require (submod "test.rkt" sub))
> to instantiate the submodule at phase 1, since the module was declared
> at phase level 1 relative to its enclosing module. But the declaration
> phase level doesn't matter for `require`; it instantiates the `sub`
> module at phase 0.

Thanks Matthew! Your explanation cleared things up for me.


Posted on the users mailing list.