[Orbit-python-list] Bug with unusual IDL
Status: Inactive
Brought to you by:
tack
From: Duncan G. <dg...@uk...> - 2001-12-05 14:28:29
|
Hi, I'm working on a Python/CORBA tutorial, so I'm experimenting with ORBit-Python. I noticed a problem with the following unusual, but legal, IDL: module M { union U switch ( enum E { one, two } ) { case one: long l; case two: short s; }; }; The unusual thing is that the switch kind is declared _inside_ the switch specification. The IDL specification says that the enum E is inside the scope of the union. This means the enumerators should be available to Python as M.U.one and M.U.two. They aren't. In fact, as far as I can tell, they aren't available anywhere. Cheers, Duncan. -- -- Duncan Grisby \ Research Engineer -- -- AT&T Laboratories Cambridge -- -- http://www.uk.research.att.com/~dpg1 -- |