Documentation for Ice 3.5. Refer to the space directory for other releases in this Archive.

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

Compare with Current View Page History

« Previous Version 30 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