Bug in touchForeignPtr?
Sven Panne
Sven.Panne at aedion.de
Mon Nov 22 12:55:17 EST 2004
Abraham Egnor wrote:
> I've found that when writing an interface to a C library that requires
> resource management, it's much better to use the withX (see
> Control.Exception.bracket) style of function than to use finalizers -
> programs are much easier to reason about and debug.
... and have a much more deterministic behaviour regarding resource
consumption. This is a very important point which is often forgotten.
Cheers,
S.
More information about the Glasgow-haskell-users
mailing list