[Issue 10467] readln problem with CTRL-Z

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 24 15:38:24 PDT 2013


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



--- Comment #3 from bearophile_hugs at eml.cc 2013-06-24 15:38:23 PDT ---
Elsewhere monarch_dodra adds some more comments on this topic and a link:

> I don't think this is a bug (I replied on the bug report): 
> terminating the stream doesn't mean terminating the program, 
> and if the program doesn't know how to handle a 
> closed/eof/error'd stdin, it will just loop...
>
> This FAQ link explains it pretty well for C++, which is pretty 
> much the same thing as in D:
> http://www.parashift.com/c++-faq/stream-input-failure.html
> (the next few points are relevant too).
>
> We could argue the design isn't optimal, yes, but it's not 
> bugged.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list