From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 2E8AABC6C for ; Fri, 18 Jan 2008 12:05:52 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAG8WkEdQRFuw/2dsb2JhbACRaJti X-IronPort-AV: E=Sophos;i="4.25,216,1199660400"; d="scan'208";a="6902321" Received: from furbychan.cocan.org ([80.68.91.176]) by mail1-smtp-roc.national.inria.fr with ESMTP; 18 Jan 2008 12:05:52 +0100 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1JFp2i-0002i8-VO; Fri, 18 Jan 2008 11:05:49 +0000 Date: Fri, 18 Jan 2008 11:05:48 +0000 To: Florent Monnier Cc: caml-list@yquem.inria.fr, Oliver Bandel Subject: Re: [Caml-list] Give back a Pair from C to OCaml? Message-ID: <20080118110548.GA9223@annexia.org> References: <1200583973.478f7525e7a5a@webmail.in-berlin.de> <200801172143.55407.fmonnier@linux-nantes.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801172143.55407.fmonnier@linux-nantes.fr.eu.org> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; ocaml:01 0100,:01 int's:01 ocaml:01 wrote:01 caml-list:01 pair:01 pair:01 usefull:02 external:03 external:03 tutorials:03 tutorials:03 tutorial:03 thu:05 On Thu, Jan 17, 2008 at 09:43:55PM +0100, Florent Monnier wrote: > > 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 > > and if someone wish to contribute to this document (correct the english or > enhance it) it's wellcome. Thanks ... Added to the list of external tutorials. http://www.ocaml-tutorial.org/#External_tutorials I found the grey-on-grey colour scheme a little bit tiring to read though. Rich. -- Richard Jones Red Hat