Enumerations: Difference between revisions

Line 279:
| value_c</lang>
 
Within ATS itself, it'''my_enum''' is a special case of recursive type definition. Similar facilities are available in ML dialects and other languages.
 
To "enumerate" with explicit integer values, I would simply define some constants, probably with '''#define''' (so I could use them in static expressions, etc.):
1,448

edits