[Enterprise Extensions only]

IDL constructed types

In addition to the basic types, IDL also supports three constructed types:

The structure and enumeration types are specified in IDL just as they are in C and C++, with the following restrictions:

The IDL union type is a cross between the C union and switch statements. This type is specified in IDL just as it is in C and C++, with the restriction that discriminated unions in IDL must be tagged. The syntax of a union type declaration is as follows:

union identifier switch
(switch-type) { case+ }
Note: A deviation from CORBA specifications exists; there is no support of longlong discriminators in unions.