[omniORB] Problem with case sensitive IDLs

Duncan Grisby duncan at grisby.org
Tue Jan 1 14:48:36 GMT 2008


On Monday 31 December, "Morris, Steve (SW/FW - Rehovot)" wrote:

> I need to write a Python application that will connect to a large,
> existing CORBA application that uses a case sensitive IDL compiler.

Case sensitive, i.e. broken IDL compiler...

> I think that can change some things in the IDL without causing
> problems, such as changing PropertyList getMany(in PropertyList
> propertyList) to PropertyList getMany(in PropertyList myPropertyList).
> 
> However, I cannot change others.  For instance, I do not have any
> solution for
> struct ForcedDrawer {.....};
> struct PaperSource
> {
>                         :
>             ForcedDrawer forcedDrawer;
>                         :
> };

You can fix that by fully qualifying the ForcedDrawer type. e.g. if it's
in the global scope you can use

 struct ForcedDrawer {.....};
 struct PaperSource
 {
   ::ForcedDrawer forcedDrawer;
 };

Alternatively, and much more easily, you can cheat and tell omniidl to
permit identifiers that differ only in case, using the -nc command line
flag.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list