On Monday, 1 June 2015 at 19:16:31 UTC, Nick Sabalausky wrote:
On 06/01/2015 01:36 PM, Nick Sabalausky wrote:

There is one part of that old proposal that I have come to like though, and wouldn't mind seeing: There was an idea to have DMD automatically
invoke an external tool


Oops, forgot to finish writing that thought...

As part of that old proposal, there was an idea to have DMD, when importing a module it couldn't find, automatically invoke an external tool which would tell DMD where to find the module. That way, a tool like RDMD would NOT need to invoke DMD twice (once to find the dependencies, and again to actually compile the dependencies).

I've sort of come around more to that particular idea (not the entire proposal though), although actually using it would likely increase compile times on windows (notoriously slow at launching processes, just look at dustmite on win), and frankly it'd probably be better just to incorporate rdmd's dependency searching as an optional feature of dmd.

Of course there is always shared libraries as an alternative to executables.

Reply via email to