No, the error in this case is as intended.
While a module is being compiled, the module does not yet claim to be
the module that it will be when it is run. That is, while "things.rkt"
is compiled, it is just "the module currently being compiled", and not
the "things.rkt" module. So, `(submod "..")
Thanks Matthew,
Is this also the same/similar bug but with submodule path as filename?
This works:
-
#lang racket ;; client.rkt
(require (submod "things.rkt" extra-things))
(displayln thing-a)
#lang racket ;; things.rkt
(provide t
That's a bug. I've pushed a repair to the git repo.
Thanks for the report!
At Tue, 20 Nov 2012 23:19:30 -0500, Harry Spier wrote:
> Dear list members,
>
> This works in DrRacket:
> definitions window
> -
> #lang racket
> (module+ server
> (provide a-from-server)
> (define
On Nov 20, 2012, at 10:38 PM, Harry Spier wrote:
> #lang racket
> (module+ server
> (provide a-from-server)
> (define a-from-server 'a-from-server))
>
> (module+ client
> (module server2 racket
> (provide b-from-server2)
> (define b-from-server2 'b-from-server2))
>
> (require (submod ".." serv
4 matches
Mail list logo