import strangeness with std.stdio.write
psychoticRabbit
meagain at meagain.com
Tue Feb 13 13:53:44 UTC 2018
On Tuesday, 13 February 2018 at 13:46:11 UTC, psychoticRabbit
wrote:
> So, strange problem below.
>
> The commented-out line will not compile (if I un-comment it),
> unless I either move std.stdio into main, or, move std.file out
> of main.
>
> Whereas writeln works just fine as is.
>
> ---------------------
> module test;
>
> import std.stdio;
>
> void main()
> {
> import std.file;
>
> //write("hello");
> writeln("hello again");
> }
> -----------------------
I should add, that this problem seems directly related to
std.file.
i.e. if I replace std.file, with say, std.conv, then the write
function (once uncommented) will compile ok.
More information about the Digitalmars-d-learn
mailing list