Call a function: Difference between revisions

m
(Adds slope example)
Line 4,143:
* Implicit forward calls are supported, as are optional explicit forward declarations, which can occasionally cure compilation error messages.
=={{header|Phixmonti}}==
<syntaxhighlight lang="phixmonti">def/# saludoPhixmonti does not distinguish between subroutines and functions.
Each word (as they are called), takes its arguments (if any) from the data stack. #/
"Hola mundo" print nl
def saludo
"Hola mundo" print nl
enddef
 
saludo /# 'saludo' is a user-defined word. #/
saludo
 
2 3 + print /# The '+' sign and 'print' are intrinsic words. The return value is deposited on the data stack #/ </syntaxhighlight>
 
getid saludo exec</syntaxhighlight>
=={{header|PicoLisp}}==
When calling a funcion in PicoLisp directly (does this mean "in a statement context"?), it is always surrounded by parentheses, with or without arguments, and for any kind of arguments (evaluated or not):
57

edits