Documentation for Ice 3.5. The latest release is Ice 3.7. Refer to the space directory for other releases.

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
  • No labels