new ForeignPtr without finalizers

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Jun 9 08:21:38 EDT 2003


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

Regards,
  Malcolm



More information about the FFI mailing list