November 14, 2005 continued: Bug or what? | ||||
---|---|---|---|---|
| ||||
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 Re: continued: Bug or what? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomás Rossi | 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
|
Copyright © 1999-2021 by the D Language Foundation