On Wednesday, 11 May 2016 at 14:24:03 UTC, Chris wrote:
I was wondering if

`static import std.file;`

`if (exists(file))`

will only import `std.file.exists` or the whole lot of `std.file`? I want to find out what the best strategy for imports is now.

Modules are always imported wholesale as far as code generation / linking is concerned.

Your example is not correct though, perhaps you meant something else. With a static import, you still need to fully-qualify the imported symbol.

Reply via email to