again: nullForeignPtr
Axel Simon
A.Simon at kent.ac.uk
Mon Jul 7 12:56:13 EDT 2003
Hi,
the discussion on ForeignPtrs without finalizers didn't come to a
conclusion. I specifically need the nullForeignPtr which was easy enough
with the FFI of GHC 5.04:
newForeignPtr nullPtr (return ())
Judging from the source code of GHC 6.0,
newForeignPtr nullPtr nullFunPtr
will lead to a crash when the finalizer is executed. Could that be fixed
in 6.0.1? Or do I have to create a dummy C function?
Thanks,
Axel.
More information about the FFI
mailing list