[PolyORB-users] Understanding CORBA packages

Thomas Quinot quinot at adacore.com
Thu May 15 17:04:33 CEST 2008


* Maciej Sobczak, 2008-05-15 :

>       Root_POA := PortableServer.POA.Helper.To_Local_Ref
>         (CORBA.ORB.Resolve_Initial_References
>          (CORBA.ORB.To_CORBA_String ("RootPOA")));
> 
> The thing that bothers me is that CORBA.ORB does not define 
> To_CORBA_String. Also, the expected type for Resolve_Initial_References 
> is CORBA.ORB.ObjectId and there is no function providing relevant 
> conversion.
> Yet, the above compiles fine.

This is really irrelevant to CORBA, this is just an Ada language issue.
To_CORBA_String is implicitly inherited by the derived type
CORBA.ORB.ObjectId from its ancestor type CORBA.String.

-- 
Thomas Quinot, Ph.D. ** quinot at adacore.com ** Senior Software Engineer
               AdaCore -- Paris, France -- New York, USA


More information about the PolyORB-users mailing list