phobos dependencies
Patrick Down
patrick.down at gmail.com
Fri Dec 20 11:34:08 PST 2013
On Friday, 20 December 2013 at 17:40:08 UTC, H. S. Teoh wrote:
> in the current import path, then implicitly try to import x.y
> and lookup
> z in that module. Then you could just write:
>
> void f(T)(T t) if (std.range.isInputRange!T) ...
>
> and the compiler will automatically import std.range within
> that scope.
How about:
scope import std.range;
// lazy import std.range; ?
void f(T)(T t) if (std.range.isInputRange!T) ...
More information about the Digitalmars-d
mailing list