tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
23
Task/Scope-modifiers/REXX/scope-modifiers.rexx
Normal file
23
Task/Scope-modifiers/REXX/scope-modifiers.rexx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*REXX program to display scope modifiers (for subroutines/functions). */
|
||||
a=1/4
|
||||
b=20
|
||||
c=3
|
||||
d=5
|
||||
call SSN_571 d**4
|
||||
|
||||
/* at this point, A is defined and equal to .25 */
|
||||
/* at this point, B is defined and equal to 40 */
|
||||
/* at this point, C is defined and equal to 27 */
|
||||
/* at this point, D is defined and equal to 5 */
|
||||
/* at this point, FF isn't defined. */
|
||||
/* at this point, EWE is defined and equal to 'female sheep' */
|
||||
/* at this point, G is defined and equal to 625 */
|
||||
exit /*stick a fork in it, we're done.*/
|
||||
/*─────────────────────────────────────SSN_571 submarine, er, subroutine*/
|
||||
SSN_571: procedure expose b c ewe g; parse arg g
|
||||
b = b*2
|
||||
c = c**3
|
||||
ff = b+c
|
||||
ewe = 'female sheep'
|
||||
d = 55555555
|
||||
return /*compliments to Jules Verne's Captain Nemo? */
|
||||
Loading…
Add table
Add a link
Reference in a new issue