samth
2019-4-18 13:11:01

@krismicinski I believe the answer is no


krismicinski
2019-4-18 14:45:01

thanks for letting me know!


jjwiseman
2019-4-18 21:59:02

why is a module-path not allowed to be an absolute path?


jjwiseman
2019-4-18 21:59:52

e.g. (module-path? "foo.rkt") => #t but (module-path? "/foo.rkt") => #f


lexi.lambda
2019-4-18 22:00:58

Presumably to discourage/avoid accidentally making a module depend being on a particular person’s computer. You can always override it by using (file "/some/absolute/path.rkt"), instead.


jjwiseman
2019-4-18 22:01:00

(i realize i may be betraying a lack of understanding of some module fundamentals—it me)


jjwiseman
2019-4-18 22:01:09

ah interesting


jjwiseman
2019-4-18 22:01:51

oh, but apparently not if i’m doing dynamic-require


jjwiseman
2019-4-18 22:02:16
> (dynamic-require (file "/tmp/test.rkt") ''x)
; stdin:5:17: file: misuse of module-path constructor (not within, e.g.,
;   `require' or `provide')

lexi.lambda
2019-4-18 22:02:51

You need '(file "/tmp/test.rkt"), since dynamic-require takes an expression, and file is syntax.


jjwiseman
2019-4-18 22:05:10

oh perfect, thanks. (i swapped that and had the extra quote on the provided arg)