Browse thread
Fwd: Re: [Caml-list] ocaml and named constants
- Nickolay Semyonov-Kolchin
[
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: | Nickolay Semyonov-Kolchin <snob@s...> |
| Subject: | Fwd: Re: [Caml-list] ocaml and named constants |
---------- 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