[omniORB] Arrays in IDL and C++ mapping in OmniORB
Duncan Grisby
duncan at grisby.org
Tue Aug 17 18:33:44 BST 2004
On Tuesday 3 August, "Frederic Prin" wrote:
> While reading the Henning & Vinoski book I found a difference between
> arrays and their mapping regarding the omniORB mapping.
> In fact, H&V distinguishes the array of fixed-length element and the
> array of variable-length (vl) element.
[...]
> void darrOp(Darr darr_inout)
> H&R (impl and objref) mapping is:
> void varrOp(Varr_slice * varr_inout)
H&V are wrong. See the C++ mapping, version 1.1, table 1.3 on page
107. inout arrays are passed just as plain C++ arrays.
> What happen, in OmniORB, if the Varr[0] sequence is reallocated in the
> servant method implementation ?
It can't be. The array is an array of sequence objects. You can't
replace the array elements with different sequence objects.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list