[omniORB] omniORBpy out parameter passing issue

Duncan Grisby dgrisby@uk.research.att.com
Tue, 11 Apr 2000 18:13:47 +0100


On Tuesday 11 April, "Bernard Niset" wrote:

> I don't know how to use an out parameter with omniORBpy. The client
> says that it requires only 1 argument but when I specify only one
> the server says that it requires to (plus, it doesn't make sense as
> long as python supports object reference arguments).

Out arguments in the Python mapping appear as extra return values in a
tuple. So, if you have IDL

interface I {
  long op(in string a, out short b, inout double c);
};

Then to call op, you do

  (result, b, c) = i.op(a, c)

I recommend that you read the mapping specification, which you can
download from

  http://www.omg.org/cgi-bin/doc?ptc/00-01-12

Cheers,

Duncan.

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