Alastair Reid wrote [snip] > We should provide a C function hs_freeStablePtr and explicitly > say that it is safe to call this from inside a finalizer. [snip] This would be the simplest solution, but would not permit you to do anything more sophisticated at the Haskell side, such as reference counting or more complicated strategies to check for possible cycles. You might end up having to do all your inter-language GC code in C, ugh. _______________________________________________ FFI mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/ffi
- RE: Proposed change to ForeignPtr Simon Marlow
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr Malcolm Wallace
- Re: Proposed change to ForeignPtr Alastair Reid
- Re: Proposed change to ForeignPtr Manuel M T Chakravarty
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr Alastair Reid
- RE: Proposed change to ForeignPtr Simon Marlow
- Re: Proposed change to ForeignPtr George Russell
- RE: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr Malcolm Wallace
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr Malcolm Wallace
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr Malcolm Wallace
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr Alastair Reid
- Re: Proposed change to ForeignPtr George Russell
- Re: Proposed change to ForeignPtr Alastair Reid