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
functions [2019/12/09 20:54] neilsfunctions [2019/12/09 21:03] – [Defining functions] neils
Line 12: Line 12:
 ===== Calling overloaded functions ===== ===== Calling overloaded functions =====
  
-Some functions are overloaded and thus they may return values of miscellaneous types. When calling a function, you must explicitly specify which type you wish to call by appending the right [[https://en.wikipedia.org/wiki/Sigil_(computer_programming)|sigil]] to the function name. For example, the [[ABS|ABS function]] can return an integer or a float:+Some of the built-in functions are overloaded and thus they may return values of miscellaneous types. When calling a function, you must explicitly specify which type you wish to call by appending the right [[https://en.wikipedia.org/wiki/Sigil_(computer_programming)|sigil]] to the function name. For example, the [[ABS|ABS function]] can return an integer or a float:
  
   myInt = abs(-5)   myInt = abs(-5)
Line 23: Line 23:
   myRandomFloat% = rnd%()   myRandomFloat% = rnd%()
      
-  ===== Defining functions ===== +Note: user defined functions may not be overloaded. 
-   +===== Defining user functions =====  
-  Please refer to the FUN ... ENDFUN directive for details.+
  
 +Please refer to the FUN ... ENDFUN directive for details.