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] hash_variant anomalies
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-07-05 (05:59)
From: Miles Egan <miles@c...>
Subject: Re: [Caml-list] hash_variant anomalies
On Wed, Jul 04, 2001 at 09:19:44AM +0900, Jacques Garrigue wrote:
> > Overall I have to say writing ocaml-c interfaces is pretty easy.
> > Mapping long lists of c enums and defines to ocaml variants seems to
> > be one of the more tedious tasks.
> Doesn't ocamlidl provide some help with standard variants?
> For polymorphic variants, there is a tool called varcc in the lablgtk
> distribution. There is no documentation, but examples and source code
> should be informative enough. It generates efficient conversion tables
> and macros between polymorphic variants and C enums.

I've already taken the liberty of "borrowing" varcc for my little project,
thanks.  Very handy.  In my last message I suggested that varcc or a tool like
it might be included in the ocaml distribution.

Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr