Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] enums in OCaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-06-13 (02:21)
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:  FAQ:
To unsubscribe, mail  Archives: