[Issue 10344] Exiting _Dmain should flush all FILE*s and return nonzero on failure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 17 13:25:16 PDT 2013


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



--- Comment #13 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-06-17 13:25:14 PDT ---
Proposed compromise:

In addition to the proposed change that throws on the final flush and adjusts
the error code, provide a writable flag in File that indicates an i/o error
should not throw.  Then if stdout output errors are deemed not critical, the
final flush will not throw or adjust the error code.  In addition, any failure
during execution when fflush is called will not throw.

This might actually be a better solution to the use case I have provided,
because the intent is clearly stated from the developer up front, that stdout's
failures are not critical to the program.

-- 
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