Previous Table of Contents Next


19.8.6 Mapping for Constants


   The notion of a constant does not exist in Automation; therefore, no mapping is prescribed for a CORBA constant.

   As with the mapping for enums, some vendors may wish to generate a header file containing an appropriate constant declaration for the client language. For example, the following OMG IDL declaration

   // OMG IDLconst long Max = 1000;

   could be translated to the following in Visual Basic:

   ' Visual BasicGlobal Const Max = 1000

   The naming rules for these constants should follow that of enums.