advancePtr for ForeignPtr

Henning Thielemann lemming at
Thu Feb 19 15:40:08 EST 2009

I want to have an advancePtr on ForeignPtr in order create a subarray.
Is this reasonable and possible?
Do I have to use 'touchForeignPtr' as finalizer of the subarray's ForeignPtr
in order to assert that the superarray lives at least as long as the subarray?
Anyway I'd prefer a function in the standard modules
than doing such things by myself.

More information about the FFI mailing list