How does D’s ‘import’ work?

Mike Parker aldacron at gmail.com
Sat Jun 3 09:58:38 UTC 2023


On Saturday, 3 June 2023 at 09:04:35 UTC, Dom DiSc wrote:
>
> You can replace your whole makefile by calling the compiler 
> with -I (not always, but if you don't do funny things in your 
> makefile).

That would be `-i`.

> - This ability of the D compiler was just recently discovered 
> (after -I was implemented for other reasons), but it relies on 
> the fact that we have imports.

Jonathan Marler implemented it in 2017 after a discussion in the 
forums.

https://github.com/dlang/dmd/pull/7099


More information about the Digitalmars-d-learn mailing list