shu--hung
2017-10-16 12:11:39

ha! $ raco expand module-begin.rkt $ raco expand module-begin.rkt (module module-begin racket (#%module-begin (module configure-runtime '#%kernel (#%module-begin (#%require racket/runtime-config) (#%app configure '#f))) (#%require syntax/parse/define) (define-syntaxes (#%module-begin) ...) (module* use #f (quote-syntax (#%plain-module-begin)))))


shu--hung
2017-10-16 12:12:15

so it does not begin with #%module-begin


ryanc
2017-10-16 17:54:00

@shu—hung yes, sorry, I wanted to try it and maybe adapt the test before I merged the PR but I haven’t had a chance yet


samth
2017-10-16 18:04:25

@mflatt returning to our conversation about module-path-index-join from this weekend, I have another issue


samth
2017-10-16 18:05:09

I would like to create a module path that works from a submodule of the place I currently am


samth
2017-10-16 18:05:31

given a module path index (or a module path) pointing to a given place


samth
2017-10-16 18:06:17

Normally, if the original module path (index) is just foo or "foo.rkt" or (submod "foo.rkt" bar) then just using it directly works fine


samth
2017-10-16 18:06:47

but if the original module path is (submod ".." foo) then putting that in a further submodule just doesn’t work


shu--hung
2017-10-16 18:12:31

@ryanc I see. Thanks!


mflatt
2017-10-16 18:12:35

@samth If you’re in the module-path-index world, then you can module-path-index-join a (submod "." bar). If you’re in the module-path world and want to stay there, then I don’t know a better approach than looking for submod and adding to the end – that is, partially parsing the module path. (I forgot why allowing nested submod wasn’t trivial in the first place.)


samth
2017-10-16 18:20:30

Ok, thanks