dcsimg
How and where to use 'inout' and 'out' type parameters...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dnyanesh_Bendre
Posted On:   Friday, March 16, 2001 09:56 PM

How and where to use 'inout' and 'out' type parameters in IDL?

Re: How and where to use 'inout' and 'out' type parameters...

Posted By:   Kesavan_Srinivasan  
Posted On:   Monday, April 2, 2001 08:54 AM

Hi,



You can use a argument as a out or inout variable and by default objects r passed by reference. And also u dont specify it to be explicitly as IN bcoz its default.

The situation may arise when u call a method say add() which takes two parameters and another for the result,
then for eg,

int x = 2;
int y = 3;
int result = 0;

add(x,y,result);

But in my IDL it will be like,

add(int,int,int OUT).

Kesavan.

About | Sitemap | Contact