Meaning of "in" in CORBA
May 8, 2010 at 5:06am UTC
What is the meaning of "in" in parameter lists in CORBA?
E.g.
double corba_cmdr( in double destro );
May 8, 2010 at 5:08am UTC
It's documentation that means "this is an input parameter". It's probably #defined as nothing and thus ignored by the compiler. In other words, it doesn't really mean anything.
May 14, 2010 at 8:22pm UTC
It's actually in CORBA C++ idl.
It means an input expected from a client in to a server...
May 15, 2010 at 7:16am UTC
IN means the parameter is only for data input.
After you compile it with the idl compiler the function will be
double corba_cmdr(double destro){
whereas with
inout you'd get
double corba_cmdr(double & destro){
don't pin me down wether it'd be a ref (&) or a pointer(*) but i think you get the point.
Topic archived. No new replies allowed.