[racket] provide and require in submodules

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu Nov 22 11:43:02 EST 2012

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 ".." server))
> (provide (all-from-out (submod ".." server))) 
> 
> (require 'server2)
> (provide (all-from-out 'server2)))  ;;;CHANGED (submod "." server2)
>                                                       ;;;;;TO 'server2
> 
> (module+ main
> (require (submod ".." client))
> a-from-server
> b-from-server2)
> 


I believe nobody responded. I can confirm the behavior, and this looks like a bug to me. Can you report it please? Thanks -- Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121122/e4950b3d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4373 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20121122/e4950b3d/attachment.p7s>

Posted on the users mailing list.