mallocForeignPtr vs. C

John Meacham john at
Mon Jul 12 21:54:10 EDT 2010

Hi, is a StablePtr what you are after?

you can pass a stableptr to the foreignptr to C and it won't be freed
until you explicitly get rid of the stableptr (and all haskell
references are gone)

John Meacham - ⑆⑆john⑈ -

More information about the Glasgow-haskell-users mailing list