This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| multiple_return_values [2019/04/19 18:22] – korshun | multiple_return_values [2019/04/21 21:32] (current) – korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Multiple return values | + | ====== Multiple return values ====== |
| - | Some ACSUtils functions return multiple values (e.g. [[math# | + | Some ACSUtils functions return multiple values (e.g. [[math# |
| ACSUtils uses a convention to fake returning multiple values from a function. The convention is as follows: there are 8 global variables with names '' | ACSUtils uses a convention to fake returning multiple values from a function. The convention is as follows: there are 8 global variables with names '' | ||
| Line 31: | Line 31: | ||
| SomeOtherFunction(a); | SomeOtherFunction(a); | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | < | ||
| + | ParseFixed(" | ||
| + | int error = r1; | ||
| + | int result = r2; // no compiler error, despite assigning a fixed to int | ||
| + | </ | ||
| + | |||
| </ | </ | ||