[omniORB] enums

Dominic Chorafakis XE41 ext. 9049 chorafad@access.bel.alcatel.be
Thu, 30 Apr 1998 10:53:24 +0200


Hello,

Another enum question...

When I do the following:

module A
{
  enum X {x1, x2, x3};

  enum Y {x1,y2,y3};
};

the IDL compiler gives the following error:

line 5: redefinition after use, ::A::x1, ::A,
::A::x1

which is because of the use of identifier x1 in
both
enum definitions.  Is this a compiler bug or does
IDL
not allow it ?

Thanks in advance,

Dominic Chorafakis