Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
C Interface and float record
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-06-16 (08:40)
From: Christoph Bauer <christoph.bauer@l...>
Subject: C Interface and float record

I have a type

type t = {
   f1 : float;
   f2 : float;
   f3 : float;

and a external C-function should allocate this as for the result.

Do I have to use

   caml_alloc(6, Double_array_tag)

to allocate such a record? I'm unsure about the 6.

Could I also use caml_alloc_small? 


Christoph Bauer