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;

    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.

Reply via email to