[omniORB] Question about XYZ_var and XYZ*

Stefan Seefeld seefelds@MAGELLAN.UMontreal.CA
Wed, 29 Nov 2000 15:41:10 -0500


Andy Faibishenko wrote:

> However, in another piece of code, someone does the following (conceptually)
> 
>      XYZ_var remote = remoteCall();
> 
>      XYZ * remotePtr = remote;

that's illegal. <>_ptr and <>_var are opaque types. You are not supposed to care
about their implementation. On some ORBs a _ptr may simply be a typedef to a plain
pointer (which means that the compiler can't warn you about the violation of the CORBA
spec), but it is still wrong.

Regards,	Stefan
_______________________________________________________              
              
Stefan Seefeld
Departement de Physique
Universite de Montreal
email: seefelds@magellan.umontreal.ca

_______________________________________________________

      ...ich hab' noch einen Koffer in Berlin...