On Friday, September 27, 2019 at 2:25:17 PM UTC+2, Matthew Flatt wrote: > > > It looks like `lazy-require` as used by `racket/match` isn't compatible > with creating a new namespace and attaching `racket/match` to that > namespace. More generally, `define-runtime-module-path-index` doesn't > cooperate with `namespace-attach-module`. Offhand, I don't know how > this might be fixed. > > For your application, I wonder whether you need to create a new > namespace at all. The namespace should start out empty, so just > `namespace-require` should set it up ok. Do you need to support > multiple REPLs or ohterwise have multiple namespaces? >
I don't currently need multiple REPLs or namespaces (I think). Using your question and your wondering whether new namespaces are needed as clues, I trimmed the "start a REPL" function down to this: (define (run-repl) (current-read-interaction foo:read-syntax-for-repl) (read-eval-print-loop)) But with this in place I get, in the REPL, trying to evaluate the string "$a := 1" (that's the non-S-expression syntax for a simple assignment): unknown:1:0: #%top-interaction: unbound identifier; also, no #%app syntax transformer is bound at: #%top-interaction in: (#%top-interaction riposte-repl (normal-assignment "a" (expression 1))) Somehow, #%app and #%top-interaction got lost. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/88108afc-0013-4651-b0c5-aa99e81f5552%40googlegroups.com.