On Sun, Aug 4, 2019 at 2:40 PM Jesse Alama <
je...@lisp.sh> wrote:
> [...]
>
> In secret.rkt I've essentially got this:
>
> (define program (parse path))
> (parameterize ([current-namespace (make-base-empty-namespace)])
> (namespace-require '(file "expander.rkt"))
> (eval program))
>
I thought I knew the solution, but when I tried it, it didn't work.
I thought you needed to produce a runtime module path for the module
that you're `namespace-require`-ing:
(define-runtime-module-path-index expander-path expander-path "expander.rkt")
... and then use that in the `namespace-require`. But when I produce
an executable and run it, I always get a "require: unknown module"
error. (Also, it wasn't clear to me if this is supposed to work unless
you also use `raco distribute`, so I tried that. Same problem.)
So I'm also stumped.