On Wednesday, 12 June 2013 at 16:34:08 UTC, Andrei Alexandrescu
wrote:
It's quite an old standard feature albeit obscure, I found it
and forgot about it a couple of times already. Works
everywhere, see
http://www.cplusplus.com/reference/cstdio/ferror/ and
http://msdn.microsoft.com/en-us/library/9yky46tz(v=vs.80).aspx
But yes, all open files should be flushed on termination. It's
what C's
stdio does already.
http://d.puremagic.com/issues/show_bug.cgi?id=10344
How come that in a first place, we have a file descriptor that
isn't working ?