On Mon, Jul 12, 2010 at 6:54 PM, John Meacham <j...@repetae.net> wrote: > Hi, is a StablePtr what you are after?
Indeed, it looks like StablePtr will get me what I want. It's a little less convenient than FunPtr because I'm already doing some finalization of FunPtrs and I can reuse the same callback, but it looks like it's specifically documented to do what I want, which is reassuring. In any case, memcpy still wins out on simplicity. If I ever need to pass a pointer larger than 32mb and have both haskell and C manage the memory, I'll look into StablePtr. _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users