RosettaCodeData/Task/Call-a-function/Phixmonti/call-a-function.phixmonti
2023-07-01 13:44:08 -04:00

10 lines
359 B
Text

/# Phixmonti does not distinguish between subroutines and functions.
Each word (as they are called), takes its arguments (if any) from the data stack. #/
def saludo
"Hola mundo" print nl
enddef
saludo /# 'saludo' is a user-defined word. #/
2 3 + print /# The '+' sign and 'print' are intrinsic words. The return value is deposited on the data stack #/