phobos dependencies
Martin Nowak
code at dawg.eu
Sun Jan 5 17:22:04 PST 2014
On 12/20/2013 09:43 PM, Martin Nowak wrote:
>
> Couldn't static imports be made lazy without breaking any code?
> The above example would read.
>
> static import std.range.
>
> void foo(R)(R range) if (std.range.isForwardRange!R)
> {
> }
Furthermore selective import can always be made lazily without changing
code.
import std.algorithm : min;
Only if `min` or `std.algorithm` are used the compiler needs to open
std.algorithm.
More information about the Digitalmars-d
mailing list