This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
new:multiple_return_values [2018/02/17 20:44] – created korshun | new:multiple_return_values [2018/02/19 12:54] – korshun | ||
---|---|---|---|
Line 9: | Line 9: | ||
int newY = r2; // And the second one | int newY = r2; // And the second one | ||
+ | <note warning> | ||
You should retrieve the return values **as soon as possible**, or else they may get overwritten by other functions that return multiple values. | You should retrieve the return values **as soon as possible**, or else they may get overwritten by other functions that return multiple values. | ||
Line 26: | Line 27: | ||
SomeOtherFunction(a); | SomeOtherFunction(a); | ||
</ | </ | ||
+ | </ | ||