RosettaCodeData/Task/Call-a-function/REXX/call-a-function-5.rexx

17 lines
1.7 KiB
Rexx
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
/*╔════════════════════════════════════════════════════════════════════╗
Calling a function in statement context.
REXX allows functions to be called (invoked) two ways, the first
example (above) is calling a function in statement context.
*/
/*╔════════════════════════════════════════════════════════════════════╗
Calling a function in within an expression.
This is a variant of the first example.
*/
yr= yearFunc() + 20
say 'two decades from now, the year will be:' yr
exit /*stick a fork in it, we're all done. */