Jump to content

Call a function: Difference between revisions

m
(J: more possible interpretations of "named arguments")
Line 177:
=={{header|ZX Spectrum Basic}}==
 
On the ZX Spectrum, functions and subroutines are separate entities. A function is limited to generatingbeing 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.