From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.6.10/8.6.6) id OAA13002 for caml-redistribution; Wed, 20 Sep 1995 14:20:33 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.6.10/8.6.6) with ESMTP id OAA11835 for ; Wed, 20 Sep 1995 14:03:02 +0200 Received: from liasg9.epfl.ch (root@liasg9.epfl.ch [128.178.155.46]) by concorde.inria.fr (8.6.10/8.6.9) with ESMTP id OAA22482 for ; Wed, 20 Sep 1995 14:02:56 +0200 Received: from lia.di.epfl.ch by liasg9.epfl.ch with esmtp (Smail3.1.29.1 #28) id m0svNqV-0002rlC; Wed, 20 Sep 95 14:01 MDT From: "Stefan Monnier" To: christ@mdhost.cse.tek.com Cc: caml-list@pauillac.inria.fr Subject: Re: interface to C++ In-reply-to: Xavier.Leroy's message of Wed, 20 Sep 1995 12:10:00 +0200. <199509201010.MAA10850@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Sep 1995 14:01:39 +0200 Message-ID: <7751.811598499@lia.di.epfl.ch> Sender: weis Xavier Leroy wrote: > by adding type information or whatever to the function name.) Then, > just put the mangled names in the Caml "value" declarations, and > everything should work fine. To get your C++ compiler to be called Rather than mess around with the mangled names, you might be better off trying to compile caml-light with your C++ compiler so that the name (de)mangling is all done by your compiler. Since C++ is an approximate superset of ANSI C, it might work. (but don't ask me how to interface caml-light with C++ objects and methods. I have no idea how easy it can be to add custom-made types) Stefan