[omniORB] Re: Promoting from integer to double in a union?

Jason Tackaberry tack@linux.com
Mon, 20 Mar 2000 09:06:29 -0500


> I didn't really expect this to work, but it does with Fnorb and
> omniORB. On the other hand, with orbit-python I get an exception:
> 
>   CORBA.SystemException: IDL:omg.org/CORBA/BAD_PARAM:1.0: 
>       Expected float, got int

I was debating about whether or not I should promote ints to floats.  For
consistency and readability, I decided to require a float value.  Also,
the Python Language Mapping Specification doesn't explicitely permit
integers here (I think).

Jason.

--
Unix/Network Administrator
Algoma University College
Sault Ste. Marie, Ontario
--
Assistant Project Manager: http://dev.linux.com
ORBit-Python Author: http://projects.sault.org/orbit-python
Personal Homepage: http://orion.dok.org