[Haskell-cafe] readFile and closing a file

Bryan O'Sullivan bos at serpentine.com
Thu Sep 18 13:09:44 EDT 2008


On Wed, Sep 17, 2008 at 6:21 AM, David Roundy <droundy at darcs.net> wrote:

>
> Eventually the garbage collector should close the file, I believe.
>

That's true, but "eventually" could be long enough to mean "never" in
practice. It's safest to assume that finalizers will not run at all, never
mind in a timely fashion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080918/72a4bec0/attachment.htm


More information about the Haskell-Cafe mailing list