Version française
Home     About     Download     Resources     Contact us    
Browse thread
Give back a Pair from C to OCaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Give back a Pair from C to OCaml?
hello Florent,


Zitat von Florent Monnier <fmonnier@linux-nantes.fr.eu.org>:

> > how can I give back a pair of values (in my case both are
> > int's) from C to OCaml?
> >
> > Didn't found something in the docs so far.
> Hi,
> Recently I've written a small tutorial about wrapping ocaml to C,
> maybe you could find it usefull:
> http://www.linux-nantes.org/~fmonnier/OCaml/ocaml-wrapping-c.php
[...]


You mentioned a "Double_wosize" in your tutorial,
but I can't find such a thing in the reference manual.

So, there seems to be something different....

Possibly you mean something like
      Wosize_val(Double_field(ml_array, 0))
???
Would that work?

Does int- and floats really need such a distinction?!


Ciao,
   Oliver