The module names "." and ".." are relative. There's no way for
dynamic-require to use them unambiguously -- they have to be resolved at
compile time. In this case, you need to either use a module path for the
enclosing module yourself, or move the resolution to compile-time using
quote-module-pat
Hi,
any idea why this is not working?
#lang racket
(module m racket
(define x 123)
(provide x))
(dynamic-require '(submod "." m) 'x)
;> standard-module-name-resolver: no base path for relative submodule
path: (submod "." m)
; OR
(dynamic-require ''m 'x)
;> dynamic-require: unknown mod
2 matches
Mail list logo