[ocaml-ctypes] Another dumb question
john skaller
skaller at internode.on.net
Wed Dec 27 06:04:13 GMT 2017
> On 27 Dec. 2017, at 16:55, john skaller <skaller at internode.on.net> wrote:
>
>
>> On 27 Dec. 2017, at 16:33, john skaller <skaller at internode.on.net> wrote:
>
> Oops let me try that again.
>
> val messy = abstract
> name:“messy”
> size:(sizeof null)
> aligment:(alignment null))
Though Real World Ocaml just does this ..
type messy_ocaml
let messy_c = messy_ocaml typ
where I assume it works because Ocaml boxes the type.
Which means the underlying C pointer had better not have the
low bit set (not that it ever will).
—
john skaller
skaller at users.sourceforge.net
http://felix-lang.org
More information about the Ctypes
mailing list