Call a function: Difference between revisions
Content added Content deleted
(J: more possible interpretations of "named arguments") |
|||
Line 177: | Line 177: | ||
=={{header|ZX Spectrum Basic}}== |
=={{header|ZX Spectrum Basic}}== |
||
On the ZX Spectrum, functions and subroutines are separate entities. A function is limited to |
On the ZX Spectrum, functions and subroutines are separate entities. A function is limited to being a single expression that generates a return value. Statements are not allowed within a function. A subroutine can perform input and output and can contain statements. |
||
<lang zxbasic>10 REM functions cannot be called in statement context |
<lang zxbasic>10 REM functions cannot be called in statement context |