[omniORB] omniidl generated headers

Kevin Wooten kwooten@itracs.com
Fri Oct 4 17:08:01 2002


I knew there must have been a reason! Otherwise that's a lot of extra
code for nothing.

Thanks,
Kevin

-----Original Message-----
From: Duncan Grisby [mailto:duncan@grisby.org] 
Sent: Thursday, October 03, 2002 11:36 PM
To: Kevin Wooten
Cc: omniorb-list@omniorb-support.com
Subject: Re: [omniORB] omniidl generated headers 

On Thursday 3 October, "Kevin Wooten" wrote:

> This is a multi-part message in MIME format.

[ Please don't send HTML email to the omniORB list! ]

> Example IDL:
>                      typedef sequence<Variant> VariantSeq;
>                      typedef sequence<Variant> AnotherSeq;
>
> This IDL produces two distinctly different, yet functionally the same,
> c++ types.
> 
> Is this a requirement of the CORBA mapping, or some other requirement?

It's a requirement of the C++ mapping. When you insert a sequence into
an Any, the Any's typecode should include the alias typecode -- i.e.
the name of the type. The only way to have the overloaded <<=
insertion operator do the right thing is to make sequence typedefs
distinct types.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --