On Tue, 16 Jun 2009 10:40:31 +0200, Christoph Bauer wrote:
> 
> 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)

caml_alloc(3 * Double_wosize, Double_array_tag)

would be better (portable between 32 and 64 bits).

C.

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to