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
[Caml-list] C -> CAML linking: loosing values in arrays??
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-01-12 (00:15)
From: Artem Prisyznuk <tema@s...>
Subject: Re: [Caml-list] C -> CAML linking: loosing values in arrays??
11.01.03 22:07:51, Daniel Andor <> wrote:

>If I pass a non-array double using copy_double(), it works and I get the 
>correct number on the other side.
>Any ideas as to where I've gone wrong?

>From Caml manual:


Arrays of integers and pointers are represented like tuples, that is, as pointers to blocks tagged 0. They are accessed with the Field macro for reading and the modify 
function for writing.

Arrays of floating-point numbers (type float array) have a _special, unboxed_, more efficient representation. These arrays are represented by pointers to blocks with 
tag Double_array_tag. They should be accessed with the Double_field and Store_double_field macros.

>To unsubscribe, mail Archives:
>Bug reports: FAQ:
>Beginner's list:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: