filtered imports

Neia Neutuladh neia at ikeran.org
Thu Sep 13 15:13:25 UTC 2018


On Thursday, 13 September 2018 at 11:58:40 UTC, rikki cattermole 
wrote:
> import std.stdio;
> import std.file;
>
> void chdir(R)(R path) {
> 	writeln("changing dir to ", path);
>     std.file.chdir(path);
> }

And if you don't want to write long qualified import names, just 
rename it:

import sf = std.file;
sf.chdir("foo");
chdir("foo");


More information about the Digitalmars-d mailing list