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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 26 Next »

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