A Slice enumeration maps to the corresponding enumeration in Objective-C. For example:
Slice
["objc:prefix:EX"] module Example { enum Fruit { Apple, Pear, Orange }; };
The generated Objective-C definition is:
Objective-C
typedef enum { EXApple, EXPear, EXOrange } EXFruit;
See Also
- Objective-C Mapping for Modules
- Objective-C Mapping for Identifiers
- Objective-C Mapping for Built-In Types
- Objective-C Mapping for Structures
- Objective-C Mapping for Sequences
- Objective-C Mapping for Dictionaries
- Objective-C Mapping for Constants
- Objective-C Mapping for Exceptions
- Objective-C Mapping for Interfaces