[omniORB] IDL Case

Stephen Crawley crawley@dstc.edu.au
Wed, 20 Jun 2001 11:12:20 +1000


> module m {
>  interface M {
>  };
>  };

The other reason that the above is illegal in CORBA 2.3 and onwards is
the following restriction (see 3.15.2 of the Core CORBA v2.3 spec):

  "The name of an interface, value type, struct, union, exception or
   a module may not be redefined within the immediate scope of the interface,
   value type, struct, union, exception or the module.  For example:

   module M {
     typedef short M; // Error
     interface i {
       void i (in short j); // Error
     };
   };