Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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:  FAQ:
To unsubscribe, mail  Archives: