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");
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");