[Haskell-cafe] advancePtr for ForeignPtr
lemming at henning-thielemann.de
Mon Feb 23 08:12:09 EST 2009
Is still someone on haskell.org ?
---------- Forwarded message ----------
Date: Thu, 19 Feb 2009 21:40:08 +0100 (CET)
From: Henning Thielemann <lemming at henning-thielemann.de>
To: ffi at haskell.org
Subject: advancePtr for ForeignPtr
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 Haskell-Cafe