digitalmars.D.bugs - continued: Bug or what?
- Tomás Rossi <Tomás_member pathlink.com> Nov 13 2005
- Tom S <Tom_member pathlink.com> Nov 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
Nov 13 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
Nov 14 2005








Tom S <Tom_member pathlink.com>