[omniORB] Sequence type in IDL of omniORB

Piet van Oostrum piet at cs.uu.nl
Wed Sep 19 11:27:12 BST 2007


>>>>> janarbek <canarbekmatay at yahoo.com> (J) wrote:

>J> Dear all,
>J>   Does IDL suppor array? I failed in generating stubs in following IDL. How can I use array in IDL? 
   
>J>   interface shortTest{
   
>J>     short[] returnShort();
>J>   }; 
   

There are two errors in your IDL:
1. Arrays have fixed bounds, so you have to supply the size of the array
   between []. Otherwise you must use a sequence.
2. In an operation (method) declaration you can't use a complex type like
   an array, sequence or struct. You must give them a name with typedef.

  interface shortTest{
    typedef short shortarray[10];
    shortarray returnShort();
  }; 

-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the omniORB-list mailing list