is struct passed by reference or by !_NEWLINE_!value
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Satya_Rao
Posted On:   Sunday, April 1, 2001 08:11 PM

Enter your full question here

In an idl is the struct value passed
by value or by reference?

eg.

struct myStruct
{
long i;
long k;
};
inteface myInterface
{
getstruct(out myStruct s);
putStruct(in myStrunct s);
};

Re: is struct passed by reference or by !_NEWLINE_!value

Posted By:   ranjit_kumar  
Posted On:   Sunday, April 1, 2001 11:47 PM

well, struct can be passed by value as well by reference. struct mapped into final class, so if you return the object of the class it will be sent by value, if you want to pass by referense, pass the corresponding holder class object of the stuct. that's it.
About | Sitemap | Contact