Call a function: Difference between revisions
m
→{{header|Phixmonti}}
(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">
Each word (as they are called), takes its arguments (if any) from the data stack. #/
"Hola mundo" print nl▼
def saludo▼
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>
=={{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):
|