Finalizers etcetera

Malcolm Wallace Malcolm.Wallace at
Fri Oct 11 12:12:40 EDT 2002

Alastair Reid <alastair at> writes:

> > (iii) ... It seems bizarre to write finalizers in a different language!
> But we're already dealing with that different language!  That's what
> the FFI is for.  ...  Writing finalizers for Addr/Ptr/ForeignPtr in C is the
> normal thing you want to do.

I do agree that there is a clear logic to writing the finaliser for a
foreign data structure in that foreign language.

> It's all that Hugs has ever supported and I have never found it
> constraining.

It is all nhc98 supported until recently, and I also never found it
a problem.  But now that I've had a play with finalisers in Haskell,
it just seems so useful!


More information about the FFI mailing list