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
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: 2008-01-17 (22:26)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Give back a Pair from C to OCaml?
hello Florent,

Zitat von Florent Monnier <>:

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

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?!