A1.
Is there a (clever?) way to achieve the following using a single function
call?
//does chdir
void fun(){
...
string dir0=getcwd; scope(exit) chdir(dir0); chdir(dir);
...
}
//desired:
void fun(){
...
chdir_scoped(dir);
...
}
AST macros should make that easy, but that's not for tomorrow apparently...
A2.
Likewise with temp file creation and similar patterns.
A3.
can we support an optional dir argument in the std.process functions to
execute inside a given directory dir (I believe the exec family should
support this)