-
Notifications
You must be signed in to change notification settings - Fork 0
Andrew Owen edited this page May 30, 2023
·
2 revisions
result = FN[ ]name [(arg_0 [, arg_1] ...)
Evaluates the user-defined function previously defined with DEF FN name.
Spaces between FN and name are required.
-
nameis the name of a previously defined function. -
arg_0, arg_1, ...are expressions, given as parameters to the function.
- In Microsoft BASIC, spaces between
FNandnameare optional. - Unlike Microsoft BASIC, in SE Basic IV, functions can be called recursively, albeit without tail call optimization.
- No function named
nameis defined: Undefined user function. - The number of parameters differs from the function definition: Syntax error.
- The type of one or more parameters differs from the function definition: Type mismatch.
- The return type is incompatible with the function name's sigil: Type mismatch.
- Press
RETURNto return to this menu. - Enter the name of a
TOPICto display it. - Enter
EXITto return to BASIC.
Choose from the following topics: