On Wednesday, 17 March 2021 at 03:43:22 UTC, Chris Piker wrote:

Note: I'm aware of dub. This isn't a question about dub. I'm making scripts for local use, not redistributable binaries, so I would like to "install" mir-algorithm and similar libraries for my rdmd scripts to use.

Sorry to reply to myself, but I found something that will run
the scripts, though it still doesn't make use of local libraries.

   #!/usr/bin/env dub
   /+ dub.sdl:
       dependency "mir-algorithm" version="~>1.0"
   +/

   import mir.ndslice
...

Since dub seems to work a bit better as the "interpreter" then
rdmd (assuming you're connected to the Internet) why is this not
promoted here:

https://tour.dlang.org/tour/en/welcome/run-d-program-locally

instead of rdmd?

Thanks,

Reply via email to