import strangeness with std.stdio.write

ketmar ketmar at ketmar.no-ip.org
Tue Feb 13 14:18:05 UTC 2018


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.


More information about the Digitalmars-d-learn mailing list