The documentation for module* would seem to indicate that submodules
declared with module* can require their parent modules:

> Like module, but only for declaring a submodule within a module,
> and for submodules that may require the enclosing module.

However, this doesn’t seem to actually work when I try it—I get an
error about a cycle in module loading for the following program
when saved as “foo.rkt”:

  #lang racket
  (module* test racket/base
    (require "foo.rkt"))

It seems to work if I (require (submod "..")) instead, but if this
is necessary, it would be nice if the documentation noted that.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to