[omniORB] Stuffing Sequences into Anys
David Riddoch
djr@uk.research.att.com
Mon, 24 May 1999 11:46:14 +0100 (GMT)
Hi Mike,
I assume you are defining this sequence type in IDL as follows:
typedef sequence<string> stringSequence;
Thus the type that you are inserting into the any is in fact a typedef of
sequence of string, hence the tk_alias.
Cheers,
David
On Fri, 21 May 1999, Mike Ladwig wrote:
> Hello-
>
> I'm having a bit of trouble getting some Orbix code to work correctly on
> omniOrb.
>
> Boiling it down gets to this issue:
>
> ---------------
> stringSequence foo;
> foo.length(0);
>
> Any *bar = new CORBA::Any;
> *bar <<= keys;
>
> cerr << (bar->type())->kind() << endl;
> ---------------
>
> When I run this fragment, I don't get 19 (tk_sequence) as I expected to
> (and do under Orbix), instead I get 21 (tk_alias).
>
> I probably just have another Ionaism to get out of my code; could
> someone point me in the right direction?
>
> Thanks,
> mike.
>
>