Browse thread
[Caml-list] hash_variant anomalies
-
Miles Egan
- Chris Quinn
-
Xavier Leroy
-
Miles Egan
-
Jacques Garrigue
- Miles Egan
-
Jacques Garrigue
-
Miles Egan
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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. -- miles ------------------- 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