Executing a D script without an [extension in the filename] leads to an error

Seb seb at wilzba.ch
Fri Mar 1 16:48:32 UTC 2019


On Friday, 1 March 2019 at 16:45:38 UTC, Seb wrote:
> On Friday, 1 March 2019 at 14:50:45 UTC, Jesse Phillips wrote:
>> I don't know what value it brings with the -i switch existing.
>
> Almost none, except that it's twice as slow as DMD because it 
> needs to run DMD twice to learn about all the dependencies.
>
> It's only useful for a few small things now:
>
> - '-e': evaluate d code with all modules automatically imported 
> (though now that there's std.experimental.all this value is 
> gone too)
> - makefile deps generation
> - shebang line (as arguments can't be part of the shebang line)
>
> (The list is not complete)

I forgot one big reason why rdmd is still nice: caching. It does 
save the generated dependency file list and checks all 
modification time stamps, s.t. if nothing has changed, it'll run 
a cached build


More information about the Digitalmars-d-learn mailing list