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=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id A755BBC6B for ; Fri, 7 Sep 2007 09:08:41 +0200 (CEST) Received: from smtp3.epfl.ch (smtp3.epfl.ch [128.178.50.26]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l8778fkI006682 for ; Fri, 7 Sep 2007 09:08:41 +0200 Received: (qmail 24820 invoked by uid 107); 7 Sep 2007 07:08:40 -0000 Received: from mailav2.epfl.ch (128.178.50.191) by smtp3.epfl.ch with SMTP; 7 Sep 2007 07:08:40 -0000 Received: from (unknown [128.178.50.19]) by MAILAV2.epfl.ch with smtp id 5e0b_297cc174_5d11_11dc_88e6_00114337c797; Fri, 07 Sep 2007 09:08:40 +0200 Received: from vpn-epfl-b008.epfl.ch (128.178.84.108) by smtp0.epfl.ch (AngelmatoPhylax SMTP proxy); Fri, 07 Sep 2007 09:08:40 +0200 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <1189132466.6596.16.camel@rosella.wigram> References: <6A9B2713-FD3C-4E27-89B1-002A05DA2D26@gmail.com> <1189132466.6596.16.camel@rosella.wigram> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Subject: Re: [Caml-list] Wrapping a C function that takes a variable number of arguments Date: Fri, 7 Sep 2007 09:08:41 +0200 To: Caml List X-Mailer: Apple Mail (2.752.2) X-Miltered: at discorde with ID 46E0F8F9.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 variants:01 unparsing:01 danvy:01 unparsing:01 brics:01 1998.:98 caml-list:01 caml:02 epfl:02 functional:02 functional:02 daniel:04 daniel:04 Le 7 sept. 07 =E0 04:34, skaller a =E9crit : > Variants. Alternatively, on the caml side of things, you can use functional =20 unparsing [1]. Best, Daniel [1] Olivier Danvy. Functional unparsing. J. of functional programing, =20= 1998. http://dx.doi.org/10.1017/S0956796898003104 Also available here : http://www.brics.dk/RS/98/12/