Scope/Function names and labels: Difference between revisions
Content added Content deleted
(Added Algol W) |
m (→{{header|REXX}}: added comments in the REXX section header explaining a method to include multiple labels on the same line.) |
||
Line 730: | Line 730: | ||
::: a colon (''':''') |
::: a colon (''':''') |
||
::::: (optional blanks) |
::::: (optional blanks) |
||
::::: (optional REXX statement (''';''') |
|||
::::: (optional semicolon (''';''') |
::::: (optional semicolon (''';''') |
||
::::: (optional blanks) |
::::: (optional blanks) |
||
Line 735: | Line 736: | ||
<br><br>Any label can be referenced from anywhere in the REXX program (global scope). |
<br><br>Any label can be referenced from anywhere in the REXX program (global scope). |
||
<br><br>Multiple labels (with the same name) are not considered an error in the REXX language; the first label found (topmost) is used. |
<br><br>Multiple labels (with the same name) are not considered an error in the REXX language; the first label found (topmost) is used. |
||
REXX comments may be added anywhere blanks can be used. |
|||
Multiple labels may be specified on the same line with: |
|||
::::: (optional blanks) |
|||
::: a REXX symbol |
|||
::::: (optional blanks) |
|||
::: a colon (''':''') |
|||
::::: (optional blanks) |
|||
::::::: ────(a repeat of the above as many times as is possible on a line of code)──── |
|||
<lang rexx>/*REXX program demonstrates the use of labels and also a CALL statement. */ |
<lang rexx>/*REXX program demonstrates the use of labels and also a CALL statement. */ |
||
blarney = -0 /*just a blarney & balderdash statement*/ |
blarney = -0 /*just a blarney & balderdash statement*/ |