Changes

Jump to: navigation, search

Researching XPIDL and IDL Technologies

236 bytes added, 16:20, 5 October 2006
Enumerations and Constants
=== Enumerations and Constants ===
C-style enumerations are not supported in XPIDL because the size of enums can be compiler specific. XPIDL alternatively supports defining constants that appear in the C++ and JavaScript mappings. They must be of type short or long and have to be present inside an interface declaration.
Other types are not supported because they do not map into all languages or have memory management issues. To define a constant that is neither short or long, write a method that returns the value, or include the value in an attribute.
1
edit

Navigation menu