Skip to content
Andrew Owen edited this page May 30, 2023 · 2 revisions

FN


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.

Parameters

  • name is the name of a previously defined function.
  • arg_0, arg_1, ... are expressions, given as parameters to the function.

Notes

  • In Microsoft BASIC, spaces between FN and name are optional.
  • Unlike Microsoft BASIC, in SE Basic IV, functions can be called recursively, albeit without tail call optimization.

Errors

  • No function named name is 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.

Welcome to the SE BASIC wiki


  • Press RETURN to return to this menu.
  • Enter the name of a TOPIC to display it.
  • Enter EXIT to return to BASIC.

Choose from the following topics:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally