new ForeignPtr without finalizers

Alastair Reid alastair at reid-consulting-uk.ltd.uk
Thu Jun 12 18:21:23 EDT 2003


> Actually, I think I prefer Ashley's idea of separating the creation of a
> ForeignPtr from the addition of a FinalizerPtr.  So how about:
>
> newForeignPtr              :: Ptr a -> IO (ForeignPtr a)
> addForeignPtrFinalizer     :: FinalizerPtr a -> ForeignPtr a -> IO ()

You're proposing a different name for newForeignPtr_?

--
Alastair



More information about the FFI mailing list