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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id EF67EBC0A for ; Tue, 20 Feb 2007 00:02:29 +0100 (CET) Received: from smtp110.sbc.mail.mud.yahoo.com (smtp110.sbc.mail.mud.yahoo.com [68.142.198.209]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l1JN2SH2025612 for ; Tue, 20 Feb 2007 00:02:29 +0100 Received: (qmail 93764 invoked from network); 19 Feb 2007 23:02:27 -0000 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@69.230.203.180 with plain) by smtp110.sbc.mail.mud.yahoo.com with SMTP; 19 Feb 2007 23:02:27 -0000 X-YMail-OSG: Xk9H9HUVM1n3L7ME9HBSp2o6W6vIHaRGZaScT2q6p1MvirJSD.s2yj54nH83BQ8h1mnKC4.XGmzHb.7bU5QlivEm4_7m.IDTt2EjesH6HMEBxputUgNXgXR7jyTF06qqeZTYoJxjAHBLcgU- Message-ID: <45DA2C6F.7000801@rftp.com> Date: Mon, 19 Feb 2007 15:02:07 -0800 From: Robert Roessler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070216 Mnenhy/0.7.4.0 SeaMonkey/1.5a MIME-Version: 1.0 To: Caml-list Subject: Re: [Caml-list] Examples of creating C++ library bindings References: <3220E2BE-5E8F-4701-9D5E-49C7FD25FC8F@gmail.com> In-Reply-To: <3220E2BE-5E8F-4701-9D5E-49C7FD25FC8F@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 45DA2C84.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bindings:01 bindings:01 humps:01 ocaml:01 pcre:01 non-trivial:01 class-based:01 lablgtk:01 1.0:98 utilizes:98 wrote:01 caml-list:01 interfaces:01 digest:01 finalization:01 Joel Reymont wrote: > Are there any examples of creating C++ library bindings? Well, on the "Caml Humps", you should be able to find something. :) In particular, I released a *simple* version of an OCaml binding for the PCRE pattern-matching library: "LablPCRE 1.0". While simple, it is also non-trivial (it utilizes "custom" blocks with finalization). As it happens, the package was originally class-based, and then was switched to a module orientation after "input" from the list. ;) I also have a much larger binding for the Scintilla editing component ("LablScintilla 0.9pre1"), but it *is* quite a bit larger, *and* interfaces with LablGTK (representing a much more interesting can of worms).. so it would be better to digest LablPCRE first. Robert Roessler roessler@rftp.com http://www.rftp.com