PDA

View Full Version : IN/OUT keywords?



Al6200
February 20th, 2007, 12:45 PM
In the context of:

int xyz(IN int arg1, IN int arg2, OUT int arg3) {
return 42;
}


I have no idea what these keywords mean, and I'm having trouble researching it since its pretty hard to search for "IN".

As a side questions, should void as the type of a function be capitals or not. Being a Flash/C# programmer at soul, Void looks best to me. But i know not...

kopo.fett
February 20th, 2007, 08:32 PM
In the context of:

int xyz(IN int arg1, IN int arg2, OUT int arg3) {
return 42;
}


I have no idea what these keywords mean, and I'm having trouble researching it since its pretty hard to search for "IN".

As a side questions, should void as the type of a function be capitals or not. Being a Flash/C# programmer at soul, Void looks best to me. But i know not...

What language is this? Just seems like arg1 and arg2 would be passed into the function and arg3 will be passed out.

int xyz(IN int arg1, IN int arg2, OUT int arg3) {
arg3 = arg1 + arg2;
}

int sum;
xyz(2, 3, sum);
// sum = 5

Not really sure, don't know this language/keywords

Again depending on the language most keywords are case sensitive so depends on the language. C# is lower case void.

MTsoul
February 23rd, 2007, 12:47 AM
If this is in Visual Studio, just right click on the "IN" or "OUT", and click go to declaration or go to definition. Microsoft likes making their code extremely loopy by typdef long LONG and a lot of other weird things that just seem redundant.