|
![](/i/fill.gif) |
Darren New wrote:
> 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.
Yeah, but if the Haskell runtime has code to handle printing out a
human-readable error message on an unhandled exception, why can't it
also run some finalisers? This is pretty basic stuff!
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |