badkins has quit [Remote host closed the connection]
nuance has quit [Ping timeout: 268 seconds]
badkins has joined #racket
nuance has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
notzmv has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 244 seconds]
kenran has joined #racket
tfb has joined #racket
tfb has quit [Quit: died]
ec has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
kenran has quit [Quit: WeeChat info:version]
badkins has joined #racket
badkins has quit [Ping timeout: 255 seconds]
ur5us has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
<nuance>
Hi, all. This isn't terrifically urgent, but I'm curious if anyone could give me some pointers on generating modules via macro expansion. As a minimal example, consider (define-syntax-rule (make-module nm body ...) (module nm racket body ...)). When used in something like (module+ main "Here's a random string" (make-module test-module (displayln "Made test-module") (define test 'test) (provide
<nuance>
test)), I'm told that module is only allowed at the top level (Racket 7.9). I've experimented with this in a few ways, including an attempt with syntax-parse with an eval in a local namespace. This seems to work, but dynamic-require cannot find the module in the "." or ".." submodules, and I'm unpersuaded that it's actually doing the right thing.
<nuance>
I'll be AFK, but curious if there are some examples or ideas to set me on the right path.
<vtbsub>
samth, oh, didn't know that you can do that using apply, thanks, I learned something new
theruran has quit [Quit: Connection closed for inactivity]