Re: io.close inconsistency
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: io.close inconsistency
- From: Miles Bader <miles.bader@...>
- Date: 2008年1月17日 17:04:52 +0900
Flemming Madsen <lua@themadsens.dk> writes:
> While I agree that files should be closed explicitly, it is often the
> responsability of the operating system to close open files at end time. This
> means that files are closed even when faced with buggy runtime systems or
> program crashes. (At least this is true for Unix like systems and Win32)
The OS usually can't take care of an unwritten buffer in a buffered
stream though (since such things are almost always the responsibility of
user-level libraries)...
-Miles
--
Fast, small, soon; pick any 2.