[racket] dynamic-require and submod

From: Tobias Hammer (tobias.hammer at dlr.de)
Date: Wed May 29 05:19:40 EDT 2013


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 module
;  module name: #<resolved-module-path:'m>

The equivalent require statements work as expected.
Strangely exactly these cases are checked in test/racket/submodule.rktl
(I suppose tests are kind of eval'd as my example runs with #lang  


Tobias Hammer
DLR / Robotics and Mechatronics Center (RMC)
Muenchner Str. 20, D-82234 Wessling
Tel.: 08153/28-1487
Mail: tobias.hammer at dlr.de

Posted on the users mailing list.