From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA17792; Tue, 22 Jun 2004 08:39:56 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA17822 for ; Tue, 22 Jun 2004 08:39:54 +0200 (MET DST) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i5M6dqEV029175 for ; Tue, 22 Jun 2004 08:39:53 +0200 Received: (qmail 22353 invoked from network); 22 Jun 2004 06:39:51 -0000 Received: from dsl081-145-152.chi1.dsl.speakeasy.net (HELO firebird) ([64.81.145.152]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 22 Jun 2004 06:39:51 -0000 Date: Tue, 22 Jun 2004 01:41:43 -0500 From: art yerkes To: erayo@cs.bilkent.edu.tr Cc: exa@kablonet.com.tr, gnu04@yahoo.com, caml-list@inria.fr Subject: Re: [Caml-list] Interface between Ocaml and C++ Message-Id: <20040622014143.6e6870ab.ayerkes@speakeasy.net> In-Reply-To: <200406212224.07538.exa@kablonet.com.tr> References: <20040619045605.16162.qmail@web60908.mail.yahoo.com> <20040619022931.17b48975.ayerkes@speakeasy.net> <200406212224.07538.exa@kablonet.com.tr> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40D7D438.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; yerkes:01 ayerkes:01 caml-list:01 2004:99 eray:01 ozkural:01 2004:99 yerkes:01 swig:01 swig:01 ocaml:01 ocaml:01 speakeasy:01 interfaces:01 module:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 21 Jun 2004 22:24:07 +0300 Eray Ozkural wrote: > On Saturday 19 June 2004 10:29, art yerkes wrote: > > The SWIG module for Ocaml has support for a few STL > > types. If you use those interfaces as a guide, you > > could add support for more if the automatic wrapping > > doesn't suit. > > > > SWIG isn't perfect for everyone but some needs are > > met very well, including using templates. > > > > Look at http://www.swig.org/ > > How does it handle convert C++ templates to ocaml code, I wonder. I had a > design in my mind, but it required quite a bit of monkeying around. What's > their solution? The current solution is to specify which specializations of a given template will be needed, after which the specialized template classes are treated as ordinary classes. -- Hey, Adam Smith, keep your invisible hands to yourself! ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners