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 UAA32573; Tue, 22 Jun 2004 20:45:05 +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 UAA32687 for ; Tue, 22 Jun 2004 20:45:04 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from eposta.kablonet.com.tr ([62.248.102.66]) by nez-perce.inria.fr (8.12.10/8.12.10) with SMTP id i5MIj1EV026653 for ; Tue, 22 Jun 2004 20:45:02 +0200 Received: (qmail 64175 invoked by uid 1007); 22 Jun 2004 18:53:53 -0000 Received: from exa@kablonet.com.tr by eposta.kablonet.com.tr by uid 0 with qmail-scanner-1.21 (clamdscan: 0.70-rc. Clear:RC:0(81.214.24.132):. Processed in 0.689437 secs); 22 Jun 2004 18:53:53 -0000 Received: from unknown (HELO orion) (exa@kablonet.com.tr@81.214.24.132) by 0 with SMTP; 22 Jun 2004 18:53:52 -0000 From: Eray Ozkural Reply-To: erayo@cs.bilkent.edu.tr Organization: Bilkent University CS Dept. To: art yerkes Subject: Re: [Caml-list] Interface between Ocaml and C++ Date: Tue, 22 Jun 2004 21:44:47 +0300 User-Agent: KMail/1.6.51 Cc: gnu04@yahoo.com, caml-list@inria.fr References: <20040619045605.16162.qmail@web60908.mail.yahoo.com> <200406221414.04909.exa@kablonet.com.tr> <20040622083634.78e2c662.ayerkes@speakeasy.net> In-Reply-To: <20040622083634.78e2c662.ayerkes@speakeasy.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406222144.48707.exa@kablonet.com.tr> X-Miltered: at nez-perce with ID 40D87E2D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; eray:01 ozkural:01 caml-list:01 2004:99 yerkes:01 const:01 char:01 char:01 stdlib:01 eray:01 ozkural:01 erayo:01 bilkent:01 bilkent:01 ankara:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tuesday 22 June 2004 16:36, art yerkes wrote: > In my experience, the C++ and ocaml type systems are different enough that > determining specializations from caml code won't work well. > > Consider that: > > std::set > std::set > std::set > > are all different specializations of std::set on various representations of > string in C++. The syntax to choose among them may not be easy for a user > to write and keep track of. I agree. What's worse, these combinatorial types can accept only C++ types as parameters. How to reliably specify that in ocaml client code, it's almost impossible to know... Maybe SWIG's approach is a good middleground then? But it makes me wonder, why should I want to use C++ stdlib if I have ocaml? >:-) The alternative I thought was a syntax extension to handle it for class and function templates. But I don't think it's going to work out, either. Regards, -- Eray Ozkural (exa) Comp. Sci. Dept., Bilkent University, Ankara KDE Project: http://www.kde.org http://www.cs.bilkent.edu.tr/~erayo Malfunction: http://malfunct.iuma.com GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C ------------------- 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