[ocaml-ctypes] Another dumb question
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
> size:(sizeof null)
> aligment:(alignment null))
Though Real World Ocaml just does this ..
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).
skaller at users.sourceforge.net
More information about the Ctypes