Wrong variables declaration location in functions / procedures / actions · Issue #10 · orcc/orc-apps · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentionned at iv) point on issue orcc/orcc#42, until now Orcc allowed to declare variables in the body of a procedure (or function / action). This is not correct regarding on CAL standard.
A patch to fix this behaviour is ready (see orcc/orcc@6d680800), but before merging it to the master branch, all projects in orc-apps repository should be fixed.
The way to fix is pretty simple but a bit long to perform:
In all actions / functions / procedures, each local variable must be declared in a 'var' block instead of in the body. Each variable declaration must be separated by a comma, instead of a semi-colon.
The text was updated successfully, but these errors were encountered:
Main branches have been updated to fix this issue. I close the ticket, since other branches can easily be fixed by cherry picking one of the three above commits (you can cherry-pick the closest and manually fix other few actors if necessary).
As mentionned at iv) point on issue orcc/orcc#42, until now Orcc allowed to declare variables in the body of a procedure (or function / action). This is not correct regarding on CAL standard.
A patch to fix this behaviour is ready (see orcc/orcc@6d680800), but before merging it to the master branch, all projects in orc-apps repository should be fixed.
The way to fix is pretty simple but a bit long to perform:
In all actions / functions / procedures, each local variable must be declared in a 'var' block instead of in the body. Each variable declaration must be separated by a comma, instead of a semi-colon.
The text was updated successfully, but these errors were encountered: