|
![](/i/fill.gif) |
Invisible wrote:
> Actually, for reasons beyond my comprehension, if a Haskell program
> halts abnormally, all files are closed, but not necessarily *flushed*.
Because it's Haskell that flushes the buffers to the file, but it's the
OS that closes the file. If you run it on (say) an Amiga, it won't close
the files, either. Apparently Haskell isn't writing directly to the
files, but to Haskell-managed buffers. Same thing happens in C with stdio.
--
Darren New / San Diego, CA, USA (PST)
Post a reply to this message
|
![](/i/fill.gif) |