ANN: H98 FFI Addendum 1.0, Release Candidate 9
Ross Paterson
ross at soi.city.ac.uk
Wed Jun 4 12:53:18 EDT 2003
On Wed, Jun 04, 2003 at 11:09:43PM +1000, Manuel M T Chakravarty wrote:
> StablePtr are used to export references to Haskell values to
> C, where they are treated as abstract data. In C one
> traditionally uses (void *) for that purpose (see "man
> qsort(3)"). We want to make sure HsStablePtr is not to wide
> to be passed as an argument to C functions expecting such
> abstract types (such as qsort(3)).
How does HsStablePtr differ from HsDouble in this respect?
(except that the C side can do even less with HsStablePtr.)
You know it somehow corresponds to a pointer on the Haskell side,
but that doesn't seem relevant.
More information about the FFI
mailing list