On 10/3/13, Craig Dillabaugh <cdill...@cg.scs.carleton.ca> wrote:
> void main( string[] args ) {
>     string str = "Hello";
>     write( "file.txt", str );
>
>     string hello_file = readText("file.txt");
>
>     writeln( hello_file );
> }

You can also disambiguate by preferring one symbol over another with an alias:

alias write = std.file.write;

void main( string[] args ) {
    string str = "Hello";
    write( "file.txt", str );
}

You can also put the alias inside the function.

Reply via email to