new ForeignPtr without finalizers

Axel Simon A.Simon at kent.ac.uk
Mon Jun 9 08:58:08 EDT 2003


On Mon, Jun 09, 2003 at 01:21:38PM +0100, Malcolm Wallace wrote:
> Ashley Yakeley <ashley at semantic.org> writes:
> 
> > Specifically I want a ForeignPtr of a null Ptr that has no finalizers.
> 
> Ah, this makes sense.
> I wonder if we should add the following to the FFI spec module ForeignPtr?
> 
>     nullForeignPtr :: ForeignPtr a	-- a null pointer with null finalizer

Yes, please. I use this function quite extensively in gtk2hs.

Thanks,
Axel.




More information about the FFI mailing list