On Thu, Jun 23, 2011 at 6:06 AM, Kagamin <spam@here.lot> wrote:
Jimmy Cao Wrote:LOL, MS resource compiler doesn't use symantec C runtime.
> I don't think console output is unbuffered. I think it's line-buffered by
> default. Although it does differ and vary; I think on Windows
> std.stdio.write("hello\n") doesn't flush but on Linux it does.
In fact sc runtime didn't flush, but this was fixed, though I don't remember where, in phobos or in sc.
import std.stdio;import core.thread;void main(){version(WIDE) // Will flush during writewstring mystr = "Hello\n"w;else // Will not flushstring mystr = "Hello\n";write(mystr);Thread.sleep( 70_000_000 ); // 7 secstdout.flush();}