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

Seb seb at wilzba.ch
Fri Mar 1 16:45:38 UTC 2019


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)


More information about the Digitalmars-d-learn mailing list