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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 39802BC0A for ; Mon, 19 Feb 2007 15:35:39 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1JEZcL2023333 for ; Mon, 19 Feb 2007 15:35:39 +0100 Received: by ug-out-1314.google.com with SMTP id k3so504807ugf for ; Mon, 19 Feb 2007 06:35:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=jkJYWVzkRb0W1j6fg0xysG5heKMQ5E5Mj/eRNqEpnF9JpIi75Ux8Jq/4HCwp7BCmPgCLOs/xLoOh19BbvHbG/dVXCwVTGDZsditjV9GaIvpx89gfh5boKNGIVWeFZIzSjbPngEnssIq3hKdxusYyFwvJk+qyuoENJ4PQr58kuN0= Received: by 10.66.243.2 with SMTP id q2mr6964476ugh.1171895738638; Mon, 19 Feb 2007 06:35:38 -0800 (PST) Received: from ?192.168.1.33? ( [83.52.56.8]) by mx.google.com with ESMTP id l33sm7453853ugc.2007.02.19.06.35.37; Mon, 19 Feb 2007 06:35:37 -0800 (PST) In-Reply-To: <000101c75431$e7948730$c09ec781@mathiasens> References: <000101c75431$e7948730$c09ec781@mathiasens> Mime-Version: 1.0 (Apple Message framework v752.3) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <525CC2C9-90A4-4FF8-95B1-70EBE0F68D41@gmail.com> Cc: Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: RE : [Caml-list] Examples of creating C++ library bindings Date: Mon, 19 Feb 2007 14:35:38 +0000 To: "Mathias Kende" X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 45D9B5BA.002 on concorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at concorde with ID 45D9B5BA.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bindings:01 pointer:01 ffi:01 bindings:01 swig:01 2007,:98 mathias:98 mathias:98 wrote:01 caml-list:01 modules:02 caml:02 idiomatic:02 library:03 manual:06 On Feb 19, 2007, at 2:26 PM, Mathias Kende wrote: > http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html#htoc232 > > Is it what you're looking for ? Mathias, thanks for the pointer. I'm looking for a reasonably small but idiomatic (is there such a thing with FFI?) example of C++ bindings. I would like to know if I should I prefer classes or use modules, for example. Do I go with SWIG or do it manually? Thanks, Joel -- http://wagerlabs.com/