<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/a3f8af61dda21ed4c9413a149d64bf07"
  from="Artem Prisyznuk &lt;tema@s...&gt;"
  author="Artem Prisyznuk"
  date="2003-01-12T00:15:49"
  subject="Re: [Caml-list] C -&gt; CAML linking: loosing values in arrays??"
  prev="2003/01/ebd86b28c2ef28b50a46fde80caaf934"
  next="2003/01/bcec04263a1c7a487d0b250728b97452"
  prev-in-thread="2003/01/ebd86b28c2ef28b50a46fde80caaf934"
  next-in-thread="2003/01/bcec04263a1c7a487d0b250728b97452"
  prev-thread="2003/01/b3381ea52ca855463acfe1b560847b5a"
  next-thread="2003/01/ae290911e3ac98ba444f0ad41ede595f"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] C -&gt; CAML linking: loosing values in arrays??">
<msg 
  url="2003/01/ebd86b28c2ef28b50a46fde80caaf934"
  from="Daniel Andor &lt;da209@c...&gt;"
  author="Daniel Andor"
  date="2003-01-11T19:08:35"
  subject="[Caml-list] C -&gt; CAML linking: loosing values in arrays??">
<msg 
  url="2003/01/a3f8af61dda21ed4c9413a149d64bf07"
  from="Artem Prisyznuk &lt;tema@s...&gt;"
  author="Artem Prisyznuk"
  date="2003-01-12T00:15:49"
  subject="Re: [Caml-list] C -&gt; CAML linking: loosing values in arrays??">
<msg 
  url="2003/01/bcec04263a1c7a487d0b250728b97452"
  from="Daniel Andor &lt;da209@c...&gt;"
  author="Daniel Andor"
  date="2003-01-12T01:03:19"
  subject="Re: [Caml-list] C -&gt; CAML linking: loosing values in arrays??">
</msg>
</msg>
<msg 
  url="2003/01/3805be8a550d5c992f50ef38d54d300a"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2003-01-15T15:09:23"
  subject="Re: [Caml-list] C -&gt; CAML linking: loosing values in arrays??">
</msg>
</msg>
</thread>

<contents>
11.01.03 22:07:51, Daniel Andor &lt;da209@cam.ac.uk&gt; wrote:

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


&gt;From Caml manual:

....
18.3.3
Arrays

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.
....


&gt;
&gt;Thanks,
&gt;Daniel.
&gt;-------------------
&gt;To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
&gt;Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
&gt;Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
&gt;


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

