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.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
fun [2019/12/09 21:28] – [Calling functions] neilsfun [2019/12/12 21:19] – [Recursion] neils
Line 47: Line 47:
 If you want a routine that does not return a value, use [[procedures|]] instead. If you want a routine that does not return a value, use [[procedures|]] instead.
  
-==== Functions with no parameters ====+==== Parameterless functions ====
  
 You can omit the parameter list, but bear in mind that you still have to write the empty parentheses: You can omit the parameter list, but bear in mind that you still have to write the empty parentheses:
Line 63: Line 63:
  
 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.