[Issue 10328] New: std.stdio.write doesn't throw on failure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 10 19:48:25 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10328
Summary: std.stdio.write doesn't throw on failure
Product: D
Version: D2
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: Jesse.K.Phillips+D at gmail.com
--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2013-06-10 19:48:24 PDT ---
Running a simple hello world program
import std.stdio;
void main() {
writeln("Hello World");
write("Hello World");
}
And executing where /dev/null is redirected as input to stdout (causing an
invalid fd)
$ ./hello 1</dev/null
http://forum.dlang.org/post/egmumvacbiflshtjofay@forum.dlang.org
Expected to see an exception thrown.
--
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