caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Fwd: Re: [Caml-list] ocaml and named constants
@ 2001-06-01  8:36 Nickolay Semyonov-Kolchin
  0 siblings, 0 replies; only message in thread
From: Nickolay Semyonov-Kolchin @ 2001-06-01  8:36 UTC (permalink / raw)
  To: caml-list



----------  Forwarded Message  ----------
Subject: Re: [Caml-list] ocaml and named constants
Date: Thu, 31 May 2001 18:52:14 +0400
From: Nickolay Semyonov-Kolchin <snob@snob.spb.ru>
To: John Max Skaller <skaller@ozemail.com.au>


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-01  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-01  8:36 Fwd: Re: [Caml-list] ocaml and named constants Nickolay Semyonov-Kolchin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).