November 14, 2005
Also, writefln or writef("\n") doesn't seems to suffer from this.
Setting a writefln("") just before the pause call fixes all.
Maybe it has something to do with the newline. Neglecting to flush until a
newline?


Tom
November 14, 2005
This is normal behaviour. Console output is buffered. The buffer is flushed on each newline character. It's the same in C, C++ or whatever. You can flush the buffer manually by saying:

fflush(stdout);


>Also, writefln or writef("\n") doesn't seems to suffer from this.
>Setting a writefln("") just before the pause call fixes all.
>Maybe it has something to do with the newline. Neglecting to flush until a
>newline?


--
Tomasz Stachowiak a.k.a. h3r3tic