Browse thread
[Caml-list] enums in OCaml?
[
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: | leary@n... |
| Subject: | [Caml-list] enums in OCaml? |
What's the right way to make something like C's enums in OCaml. I found a couple references to sum types online and in the manual and caml light tutorial, but none of it was really what I'm looking for: alias a number with a name, hopefully conveniently. Should I just make some named variables? That seems a bit verbose and un-clever. ------------------- 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