caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Interfacing C++ and Ocaml
@ 2001-03-30  8:54 David Chemouil
  2001-03-30  9:13 ` Bruce Hoult
  2001-03-30 16:50 ` Overloading again (Was Re: [Caml-list] Interfacing C++ and Ocaml) Brian Rogoff
  0 siblings, 2 replies; 13+ messages in thread
From: David Chemouil @ 2001-03-30  8:54 UTC (permalink / raw)
  To: caml-list


Hi,



I am in the situation where I would like to write an Ocaml program which
makes use of some C++ classes. It seems to me some people had said there
were some problems doing so, but I can't recall what these problems may
be, and didn't find anything precise in the ML archive.

So, I would like to know what may prevent me to reuse C++ code from
Ocaml, if anything may. I am sure some arrangements can be done, as
there exists an Ocaml implementation on BeOS, which is programmed in
C++. 

Moreover, if it is possible, what do you advise me to do? What are the
limitations? Have you got simple examples of such interfacings?


Thanks in advance,

dc



PS: BTW, I would like to thank these happy volunteers who aim at
packaging a Caml Development Kit. IMO, this is truly a good idea, which
may help Caml spread. Just a question to the Caml team: I would like to
know if (when?) you intend to include polymorphic I/O and some kind of
overloading in a forthcoming release of Caml. It seems to me Pierre had
written some mails about this, but is is now a long time ago, how is the
situation today?


-- 
David Chemouil    [mailto:David.Chemouil@irit.fr]

Institut de recherche en informatique de Toulouse
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Overloading again (Was Re: [Caml-list] Interfacing C++ and Ocaml)
@ 2001-03-30 20:41 Hao-yang Wang
  2001-04-01 20:15 ` Sven LUTHER
  0 siblings, 1 reply; 13+ messages in thread
From: Hao-yang Wang @ 2001-03-30 20:41 UTC (permalink / raw)
  To: caml-list

>An even longer time ago I asked about overloading and got a nice long
>reply from Francois Rouaix, describing the history of overloading in Caml
>and ending with something like "Jun Furuse is now working on it". You can
>read about the latest incarnation of his work by going to 
>
>http://pauillac.inria.fr/jfla/2001/actes/index.html
>
>and downloading 
>
>Generic Polymorphism in ML
>
>which as you can guess is in English unlike his paper last year. 
>
>I'd also love to know if and when this will make it into Ocaml since this
>is one of the few things that I dislike about ML style languages and
>even after quite a bit of Caml programming I still miss overloading. 
>
>-- Brian


Well, I re-read Francois Rouaix's long email, and at the end he said:
>In this type system, we still have static type-checking and inference,
>but there are some practical problems: coherence (as always when you do
>powerful overloading), true separate compilation, but more significantly,
>you have to define all "instances" of an overloaded function in a single
>"generic" definition. In most cases, this is not what the user wants.

>From Jun Furuse's paper, it seems that we still have to define all 
"instances" of an overloaded function in a single generic" definition. If 
so, we cannot extend an existing function/operator, such as (+), to 
parameters of new types.

Is this true, or did I miss something in Jun's paper?

Cheers,
Hao-yang Wang
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-04-09 15:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30  8:54 [Caml-list] Interfacing C++ and Ocaml David Chemouil
2001-03-30  9:13 ` Bruce Hoult
2001-03-30  9:24   ` Fergus Henderson
2001-03-30 16:50 ` Overloading again (Was Re: [Caml-list] Interfacing C++ and Ocaml) Brian Rogoff
2001-04-02  8:13   ` Jean-Marc Alliot
2001-04-02 13:48     ` Fergus Henderson
2001-04-02 14:30       ` Jean-Marc Alliot
2001-04-02 15:49         ` Brian Rogoff
2001-04-09  6:47           ` John Max Skaller
2001-04-02 15:51     ` Brock
2001-03-30 20:41 Hao-yang Wang
2001-04-01 20:15 ` Sven LUTHER
2001-04-02 11:07   ` Sven LUTHER

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).