Passing an array by ref as a function argument
I am trying the following code:
But then I get the following errors:
**Error**:Ummatched left parenthesis '('
**Error**:Expected->')'. Found '['
**Error**:No body declared for procedure
**Error**:Unexpected scanner token-> '['
**Error**:Unexpected scanner token-> ', '
**Error**:Unexpected scanner token-> ')'
*Warning*:Unreferenced function 'output'
**Error**:Undefined variable '_out'. 'short' assumed.
Seems a little odd. I am not keen to use global variables in my program, they leave a nasty taste in my mouth.
How is it done in RobotC? I am using v1.40RC3
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page