The following does not work in the definitions window of DrRacket:
 
#lang racket
(module a racket (display "hello"))
(module b racket (require 'a))
(module c racket (require 'b))
(require 'c)
 
But when putting it in the interactions-window (without the #lang line),
it works.
 
After reading the docs and experimenting a bit,
I found out the following does work in the definitions window:
 
#lang racket
(module a racket (display "hello"))
(module b racket (require (submod ".." a)))
(module c racket (require (submod ".." b)))
(require 'c)
 
This puzzles me.
I know the top-level is hopeless.
Nevertheless I don't see why in this case the REPL
would have to deviate from the definitions window.
 
I am also puzzled why I have to put ".." in stead of ".".
I first tried ".", for this seems more logical to me,
but does not work (as is documented).
Help me to understand this, please.
Thanks, Jos

-- 
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