[Issue 387] When EOF of din is reached, a line of output is lost

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 28 23:40:35 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=387





------- Comment #2 from ddparnell at bigpond.com  2006-09-29 01:40 -------
Works for me too ...

c:\temp>type test.d
import std.cstream;
import std.stdio;

void main() {
    while (din.getc != char.init) {}
    writefln("Line 1");
    writefln("Line 2");
}
c:\temp>bud test
Path and Version : y:\util\bud.exe v3.03(2370)
  built on Wed Sep 20 16:16:41 2006

c:\temp>test <test.d
Line 1
Line 2

c:\temp>


-- 




More information about the Digitalmars-d-bugs mailing list