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");
}
-----------------------

Reply via email to