From: Matthew Flatt (mflatt at cs.utah.edu) Date: Sun Jul 14 18:56:47 EDT 2013 |
|
At Sun, 14 Jul 2013 12:50:32 -0600, Christopher wrote: > #lang racket > > (module A racket > (provide x) > (define x #t) ) > > (let [] > (local-require 'A) > x ) The '-based shorthand for submodules only works in certain situations. (Generalizing that has been on my to-do list for a long time.) For now, you have to use the longer `(submod "." A)' form: #lang racket (module A racket (provide x) (define x #t)) (let [] (local-require (submod "." A)) x)
Posted on the users mailing list. |
|