English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Interface between Ocaml and C++
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-22 (06:39)
From: art yerkes <ayerkes@s...>
Subject: Re: [Caml-list] Interface between Ocaml and C++
On Mon, 21 Jun 2004 22:24:07 +0300
Eray Ozkural <exa@kablonet.com.tr> 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