Scope/Function names and labels: Difference between revisions

m
→‎{{header|REXX}}: added comments in the REXX section header explaining a method to include multiple labels on the same line.
(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:
::: a colon (''':''')
::::: (optional blanks)
::::: (optional REXX statement (''';''')
::::: (optional semicolon (''';''')
::::: (optional blanks)
Line 735 ⟶ 736:
<br><br>Any label can be referenced from anywhere in the REXX program &nbsp; (global scope).
<br><br>Multiple labels (with the same name) are not considered an error in the REXX language; &nbsp; 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. */
blarney = -0 /*just a blarney & balderdash statement*/