[omniORB] IDL Question
ryan.tecco
rtecco@voxel.ummu.umich.edu
Mon, 7 Jun 1999 10:33:33 -0400 (EDT)
My problem was that the exact situation was:
struct Finger
{
//stuff
}
struct Hand
{
Finger finger[5];
}
Which omniidl2 complains is a redefinition of the Finger type... I fixed
it.
Thanks!
--------------
ryan.tecco
734.647.8057
microcosm/CAVE programmer
the university of michigan
"when all the pettiness is gone,
what do we really have?"
On Mon, 7 Jun 1999, Duncan Grisby wrote:
> On Sunday 6 June, "ryan.tecco" wrote:
>
> > I have a situation like this: (in C++)
> >
> > struct OneThing
> > {
> > int counter;
> > }
> >
> > struct SecondThing
> > {
> > OneThing things[5];
> > }
> >
> > How does this translate into IDL?
>
> Exactly like that, except that int isn't an IDL type, and you need to
> end your struct definitions with semi-colons like:
>
> struct OneThing {
> long counter;
> };
>
> struct SecondThing {
> OneThing things[5];
> };
>
>
> HTH,
>
> Duncan.
>
> --
> -- Duncan Grisby \ Research Engineer --
> -- AT&T Laboratories Cambridge --
> -- http://www.uk.research.att.com/~dpg1 --
>