On Tuesday, 13 February 2018 at 14:18:05 UTC, ketmar wrote:
psychoticRabbit wrote:

Also, if I do this below, how does the compiler choose the correct write function?

import std.stdio;
import std.file;

void main()
{
     write("hello");
     writeln("hello again");
}

it's easy: just take a look at `std.file.write()`. first, it require two arguments. this is enough to rule `stf.file.write()` out in your case.

oh..function overloading..makes sense.

thanks again.

Reply via email to