On 6/1/15 12:16 PM, 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).
rdmd could collect dependencies while performing the actual compilation.
Then, if the dependencies are stable (compare with the saved ones), all
done in one run. Otherwise, discard the output and rebuild.
This can be implemented today. Would you want to work on it?
Andrei