Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Call-a-function/REXX/call-a-function-5.rexx
Normal file
16
Task/Call-a-function/REXX/call-a-function-5.rexx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*╔════════════════════════════════════════════════════════════════════╗
|
||||
║ 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. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue