forked from RaspberryPiFoundation/blockly
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels