From: Nickolay Semyonov-Kolchin <snob@snob.spb.ru>
To: "caml-list" <caml-list@inria.fr>
Subject: Fwd: Re: [Caml-list] ocaml and named constants
Date: Fri, 1 Jun 2001 12:36:11 +0400 [thread overview]
Message-ID: <01060112361100.00835@athlon.snob.spb.ru> (raw)
---------- 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
reply other threads:[~2001-06-01 9:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01060112361100.00835@athlon.snob.spb.ru \
--to=snob@snob.spb.ru \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).