import strangeness with std.stdio.write

psychoticRabbit meagain at meagain.com
Tue Feb 13 13:46:11 UTC 2018


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


More information about the Digitalmars-d-learn mailing list