8000 Wrong variables declaration location in functions / procedures / actions · Issue #10 · orcc/orc-apps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Wrong variables declaration location in functions / procedures / actions #10
Closed
@alorence

Description

@alorence

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0