Scope modifiers: Difference between revisions

m
→‎{{header|REXX}}: changed the REXX section header.
m ({{out}})
m (→‎{{header|REXX}}: changed the REXX section header.)
Line 992:
 
=={{header|REXX}}==
In the REXX language, all variables are localglobal, and only within PROCEDUREs are variables local (private), except for those identified
<br>for those identified via the EXPOSE&nbsp; '''expose''' &nbsp; option. &nbsp; There is a variant where the EXPOSE&nbsp; '''expose''' &nbsp; can have a list specified (along with variables and stems).
 
<br>Any REXX variables in an external routine (program) aren't known.
<br>Note: the R4 REXX interpreter has an '''EXPOSEALL''' option that allows an external REXX subroutine to access the caller's local variables.
 
<br>There is a mechanism that allows external programs to access local REXX variables and is essentially restricted to
<br>Note: the R4 REXX interpreter has an &nbsp; '''EXPOSEALLexposeall''' &nbsp; option that allows an external REXX subroutine to access the caller's local variables.
<br>assembler programs that use the REXXAPI interface.
<br>There is a mechanism that allows external programs to access local REXX variables and is essentially restricted to assembler programs
<br>All labels (names of subroutines/functions/procedures) are global.
<br>assembler(or other programs) that use the REXXAPI interface.
<br>If more than one identical label is specified, only the first label is recognized (and not considered an error).
 
<br>All labels (names of subroutines/functions/procedures) are global, regardless of procedures.
 
<br>If more than one identical label is specified, only the first label is recognized (and notit isn't considered an error).
<lang rexx>/*REXX program to display scope modifiers (for subroutines/functions). */
a=1/4