Non-typedef'd arrays in IDL files



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;
    };
)

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.

thanks,
	Gergo

-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus@cactus.rulez.org =---'
God created the universe in 6 days because He didn't have to worry about an installed base.




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