RosettaCodeData/Task/Call-a-function/Phixmonti/call-a-function.phixmonti

11 lines
359 B
Plaintext

/# 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 #/