Enumerations: Difference between revisions
Content added Content deleted
Line 279: | Line 279: | ||
| value_c</lang> |
| value_c</lang> |
||
Within ATS itself, |
Within ATS itself, '''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.): |
To "enumerate" with explicit integer values, I would simply define some constants, probably with '''#define''' (so I could use them in static expressions, etc.): |