import strangeness with std.stdio.write
psychoticRabbit
meagain at meagain.com
Tue Feb 13 14:21:57 UTC 2018
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.
More information about the Digitalmars-d-learn
mailing list