Constants are declared in Interface Declaration Language (IDL) just as in C++ except that the type of the constant must be a valid IDL type. IDL constant declarations take the following form:
const const-type identifier=constant-expression;
The const-type must be a valid IDL integer, char, wchar, boolean, floating point, string, wstring, octet, or enum type. The identifier is the name of the constant being defined. The constant-expression is a constant expression as in C or C++ and can include the following that are usual in the C and C++ programming languages: