Scope modifiers: Difference between revisions
Content deleted Content added
→{{header|REXX}}: added the REXX language. -- ~~~~ |
→{{header|REXX}}: added comments to the header section. -- ~~~~ |
||
Line 579: | Line 579: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
In the REXX language, all variables are local, and only within PROCEDUREs are variables local (private), except |
|||
<br>for those identified via the EXPOSE option. There is a variant where the EXPOSE can have a list specified. |
|||
<br>Any REXX variables in an external routine (program) aren't known. |
|||
<br>There is a mechanism that allows external programs to access local REXX variables and is essentially restricted to |
|||
<br>assembler programs that use the REXXAPI interface. |
|||
<lang rexx>/*REXX program to display scope modifiers (for subroutines/functions). */ |
<lang rexx>/*REXX program to display scope modifiers (for subroutines/functions). */ |
||
a=1/4 |
a=1/4 |