From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA07517; Thu, 5 Jul 2001 07:59:10 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA07513 for ; Thu, 5 Jul 2001 07:59:09 +0200 (MET DST) Received: from www.invert.com (www.invert.com [209.164.21.15]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f655x3D12887 for ; Thu, 5 Jul 2001 07:59:04 +0200 (MET DST) Received: (from miles@localhost) by www.invert.com (8.10.1/8.10.1AA) id f655wtN78476; Wed, 4 Jul 2001 22:58:55 -0700 (PDT) (envelope-from miles) Date: Wed, 4 Jul 2001 22:58:55 -0700 From: Miles Egan To: Jacques Garrigue Cc: caml-list@inria.fr Subject: Re: [Caml-list] hash_variant anomalies Message-ID: <20010704225855.A78460@caddr.com> References: <20010702180232.A51837@caddr.com> <20010703094210.A15237@pauillac.inria.fr> <20010703081540.A58338@caddr.com> <20010704091944F.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010704091944F.garrigue@kurims.kyoto-u.ac.jp>; from garrigue@kurims.kyoto-u.ac.jp on Wed, Jul 04, 2001 at 09:19:44AM +0900 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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