ForeignPtr naming
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Wed Mar 26 07:14:38 EST 2003
"Simon Marlow" <simonmar at microsoft.com> wrote,
> > As Haskell finalizers need pre-emptive concurrency, maybe
> > they should go somewhere related to concurrency. Or we
> > could have a "Foreign.Concurrent".
>
> Ok, how about Foreign.Concurrent.newForeignPtr and
> Foreign.Concurrent.addForeignPtrFinalizer? i.e. dodging the naming
> issue by using the module system. It also means that code which uses
> GHC's existing versions of these functions can be fixed by changing
> imports only.
Sounds good to me.
Cheers,
Manuel
More information about the FFI
mailing list