Re: [racket-users] Namespaces and modules

2020-11-15 Thread Philip McGrath
I think you’ll need `define-runtime-module-path` or `define-runtime-module-path-index` to alert the executable builder to the dynamic dependency. On Sun, Nov 15, 2020 at 3:38 AM Dominik Pantůček < dominik.pantu...@trustica.cz> wrote: > > > > > Using ''sandbox as an argument to `namespace-require`

Re: [racket-users] Namespaces and modules

2020-11-15 Thread Dominik Pantůček
> > Using ''sandbox as an argument to `namespace-require` to refer to a > local module is something like passing 'x to `eval` to try to refer to > a local variable `x`. The `namespace-require` procedure doesn't know > where it's being called from, so it doesn't work. > > Try `quote-module-path`

Re: [racket-users] Namespaces and modules

2020-11-12 Thread Matthew Flatt
At Thu, 12 Nov 2020 23:35:11 +0100, Dominik Pantůček wrote: > If I however try to achieve the same goal using module form within my > module, it always fails: > > (module sandbox racket/base > (provide #%app #%datum test) > (define (test) (displayln 'test))) > (parameterize ((current-namespace