Re: orbit-idl-2 ... Anyone?



AFAIK Diego's post is incorrect.

module X { struct Y { }; };

is, of course, valid IDL.

In the BNF Diego quotes, "typedef <type_declarator>" is one entire alternative
and "<struct_type>" is another, etc.

As for CORBA 2.6, it will not invalidate anything expressible in CORBA
2.1 IDL. CORBA 2.x versions are backwards compatible.

The C binding is compliant only with 2.1, and does not formally include
any later extensions. It has not been updated for 2.x where x > 1.

	-Huw

> Hi again:
> 
> On Fri, May 24, 2002 at 06:28:02PM +0800, Hing-Wah Wan wrote:
> 
> | > <type_dcl> ::=  typedef  <type_declarator> 
> | > 	| <struct_type> 
> | > 	| <union_type> 
> | > 	| <enum_type> 
> | > 	|  native  <simple_declarator> 
> | > 	| <constr_forward_decl>
> | > 
> | > and 
> | > 
> | > <type_declarator> ::= <type_spec> <declarators>
> | > <type_spec> ::= <simple_type_spec> | <constr_type_spec>
> | > 
> | > and
> | > 
> | > <declarators> ::= <declarator> {  ,  <declarator> }*
> | > <declarator> ::= <simple_declarator>
> | > 	| <complex_declarator>
> | > 
> | > and
> | > 
> | > <complex_declarator> ::= <array_declarator>
> | ORBit 2 is targeted at CORBA 2.4 instead of CORBA 2.6,
> | where the way to declare a array is :
> | 
> | (83) <array_declarator> ::= <identifier> <fixed_array_size>+ 
> | (84) <fixed_array_size> ::=  [  <positive_int_const>  ]
> | 
> | um..and also the C Language Mapping is not updated to reflect the new
> | mapping of array for CORBA 2.6...
> 
> Exact! But... see... you can only reach it from within a 
> 
> typedef  <type-declarator>
> 
> So, I say again:
>  
> | > 	So, starting in a typedef is the only way of define a
> | > (correctly-written) IDL.
> 
> (and add: IDL that defines an array).
> 
> 	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   \(__)|
> _______________________________________________
> orbit-list mailing list
> orbit-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/orbit-list

-- 
Huw Rogers <rogers@building2.co.jp>




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