Skip to content

Subroutine calls from subroutines don't work #21

@ptpj

Description

@ptpj

Moving here from the initial report: aseba-community/aseba#752

Adding a procedure call to a procedure block results in an empty AESL subroutine being generated.

The code that causes that is here:
https://github.com/aseba-community/blockly/blob/866c66c66df78100816c77d5bd8879edacf06927/generators/aesl/procedures.js#L18

There seems to be no apparent reason. The comment in code says: "AESL does allow subroutines to call other subroutines, but they need to be defined in the correct order."
But it doesn't seem to be the case, the following code works fine in AESL:

sub AA:
callsub BB

sub BB:
...

AESL is happy as long as there are no cycles.

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