[Haskell-cafe] Re: Could FFI support pass-by-value of structs?
Maurício
briqueabraque at yahoo.com
Wed Jul 1 20:05:06 EDT 2009
>> Do you imagine an objection on creating a ticket asking for
>> something like CComplex on Foreign.C.Types?
>
> No, I would like it. Also add a 'CBool' that maps to the calling
> convention for _Bool while you are at it.
Here is a draft. Please comment:
Proposal: complement Foreign.C.Types
A few more types could be usefull in Foreign.C.Types. These
are sugested to be included:
* CBool
Related to 'bool' (or _Bool) from stdbool.h.
* CComplexFloat, CComplexDouble
Related to 'float complex' and 'double complex'.
Pros:
Cons:
More information about the Haskell-Cafe
mailing list