[Issue 2545] write(f)(ln) delays throwing StdioException("Bad file descriptor") when no console is available

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 29 10:06:34 PST 2008


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





------- Comment #2 from andrei at metalanguage.com  2008-12-29 12:06 -------
Currently write forwards calls to the corresponding system routines and
faithfully transforms their error codes into exceptions. I agree with Steward
that non-failure is not an option :o), but I also agree that this state of
affairs may also cause problems. 

I could put a check in write to make it fail sooner, but I'm thinking that
maybe that behavior on Windows is intentional, e.g. to allow users to create
their own console and flush to them or whatnot.


-- 



More information about the Digitalmars-d-bugs mailing list