| In the current CVS GHC, undoubtedly the right thing to use is
| Foreign.mallocForeignPtr.  Internally these are implemented as
| MutableByteArray#, so you get fast allocation and GC, but from the
| programmer's point of view it's a normal ForeignPtr.

I wonder how it is for a random FFI user to discover this.  Does some
advice belong in the FFI spec, or in GHC's FFI chapter?

Simon

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to