Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
gosubreturn [2019/05/07 12:45] – neils | gosubreturn [2019/05/07 12:47] (current) – neils | ||
---|---|---|---|
Line 6: | Line 6: | ||
return | return | ||
- | The '' | + | The '' |
rem ** subroutines ** | rem ** subroutines ** | ||
Line 21: | Line 21: | ||
return | return | ||
- | Note #1: make sure to use the `END` command before your routines if you don't want them to be executed in the normal program flow (like in the example above). | + | **Note #1**: make sure to use the '' |
- | Note #2: there is no runtime call stack checking (e. g. no `?RETURN WITHOUT GOSUB ERROR`). If your call stack is corrupted, the program is likely to break. | + | **Note #2**: there is no runtime call stack checking (e. g. no '' |
- | Note #3: Unlike procedures, subroutines do not open a new local scope. | + | **Note #3**: Unlike procedures, subroutines do not open a new local scope. |