17 Feb
2009
17 Feb
'09
7:44 a.m.
On 2009-02-14, Maurício <briqueabraque@yahoo.com> wrote:
The way you wrote CComplex a, is it possible to write
foreign import ccall "somename" somename :: CComplex CDouble -> IO CComplex CDouble
Ah, no, I'm afraid not, I misunderstood what you wanted. You do indeed need to go through CPtr (CComplex CDouble) with this scheme. I think having direct access at this level requires modifying the compiler. The FFI spec really does need to be updated to C99. -- Aaron Denney -><-