[omniORB] Problem with enum constants

Duncan Grisby dgrisby@uk.research.att.com
Thu, 14 Oct 1999 09:26:44 +0100


On Wednesday 13 October, Craig Rodrigues wrote:

> enum Color {red, green, blue};
> const Color col = red;
> 
> When I compiled with omniidl2, I got the following error:
> 
> omniidl2: "b.idl", line 3: coercion failure 0 to any
> omniidl2: b.idl: found 1 error

Enum constants are new with the 2.3 spec. They haven't made it into
omniORB yet. They will be in the 3.0 release.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --