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 revisionNext revision | Previous revision | ||
fun [2019/12/09 21:58] – [Functions with no parameters] neils | fun [2020/08/07 09:02] (current) – correct FUNC to FUN thraka | ||
---|---|---|---|
Line 12: | Line 12: | ||
The '' | The '' | ||
- | * They **must** return a value | + | * They **must** return a value. |
- | * They can be called from within an expression | + | * They can be called from within an expression. |
+ | |||
+ | The name of the function and the name of a parameter **can' | ||
===== Defining functions ===== | ===== Defining functions ===== | ||
Line 63: | Line 65: | ||
Important note: you must pass exactly the same amount of parameters and the parameter types must match those in the function definition. | Important note: you must pass exactly the same amount of parameters and the parameter types must match those in the function definition. | ||
+ | |||
+ | ===== Recursion ===== | ||
+ | |||
+ | While procedures do support direct recursion, functions don't. | ||