advancePtr for ForeignPtr

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

advancePtr for ForeignPtr

Henning Thielemann

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.
_______________________________________________
FFI mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/ffi