Ptr and ForeignPtr Questions

Ashley Yakeley
Thu, 20 Sep 2001 16:27:14 -0700

At 2001-09-20 06:55, Manuel M. T. Chakravarty wrote:

>The FFI does not ensure any type consistency between the
>arguments to `Ptr'/`ForeignPtr' and the corresponding C

I've been using 'Ptr Word8' with newArray to pass lists of bytes to C 
functions. They appear as unsigned char arrays in the C function. Is this 
wrong, or not guaranteed?

Ashley Yakeley, Seattle WA