Re: Non-typedef'd arrays in IDL files



Hi, Gergo

On Tue, Apr 30, 2002 at 01:53:38PM +0200, ERDI Gergo wrote:

| Suppose I have the following IDL:
| 
|     struct Test_st
|     {
| 	long   num;
| 	string text[2];
|     };
| 
| Is this valid? (as opposed to requiring an explicit typedef, i.e.:
| 
|     typedef string MyStringArray[2];
|     struct Test_st
|     {
| 	long          num;
| 	MyStringArray text;
|     };
| )

First is non valid. Second it is. I have to check recent CORBA 2.6
additions, but I think they only change sequence related issues, and
also, ORBit2 does not adhere to that version of CORBA.

| 
| Also, according to the C++ CORBA spec, you need to define auxillary
| classes and functions for arrays (like T_dup or T_out), which is of course
| quite impossible without an explicit typedef.
| 

Yes. This is the case.

	Best regards!
	diego.

-- 
Diego Sevilla Ruiz  http://ditec.um.es/~dsevilla  dsevilla@um.es  \    /\
Dpto. Ingeniería y Tecnología de Computadores http://ditec.um.es   )  ( ')
Visiting Extreme! Computing Lab       http://extreme.indiana.edu  (  /  )
Indiana University, Bloomington               http://www.iub.edu   \(__)|



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]