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 LAA26941; Fri, 1 Jun 2001 11:00:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA26914 for ; Fri, 1 Jun 2001 11:00:07 +0200 (MET DST) Received: from dux.ru (ns.dux.ru [193.125.210.65]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f51906108221 for ; Fri, 1 Jun 2001 11:00:06 +0200 (MET DST) Received: (from uucp@localhost) by dux.ru (8.8.8/8.7.6/DUX) with UUCP id NAA17923 for caml-list@inria.fr; Fri, 1 Jun 2001 13:01:16 +0400 (MSD) Received: (qmail 586 invoked from network); 1 Jun 2001 08:41:02 -0000 Received: from softdnserror (HELO athlon.snob.spb.ru) (snob@192.168.200.3) by softdnserror with SMTP; 1 Jun 2001 08:41:02 -0000 Content-Type: text/plain; charset="koi8-r" From: Nickolay Semyonov-Kolchin Organization: MIF To: "caml-list" Subject: Fwd: Re: [Caml-list] ocaml and named constants Date: Fri, 1 Jun 2001 12:36:11 +0400 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01060112361100.00835@athlon.snob.spb.ru> Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk ---------- Forwarded Message ---------- Subject: Re: [Caml-list] ocaml and named constants Date: Thu, 31 May 2001 18:52:14 +0400 From: Nickolay Semyonov-Kolchin To: John Max Skaller On Tuesday 29 May 2001 21:16, you wrote: > let c1 = 1 > and c2 = 2 > in match expr with > > | x when x = c1 -> .. > | x when x = c2 -> .. Smth like C-enums will be extremly useful for inregrating C libraries. type tGLmodes = LINES= 1 | POINTS =2 | TRIANGLES = 0x333 ;; and subsets ... type tGLrestirted = subtype tGLmodes: LINES | QUADS = 5 ;; Nickolay ------------------------------------------------------- ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr