Scope/Function names and labels: Difference between revisions

Added Algol W
m (removed typo 'fruby')
(Added Algol W)
Line 33:
<br>
Note that labels cannot be defined between IF and THEN, between WHILE and DO and between CASE and IN.
 
=={{header|ALGOL W}}==
Algol W follows the scoping rules of Algol 60 - a function (called a procedure) or a label is only in scope within the block it is declared in and in blocks nested within that block. If a procedure, label, variable etc. is declared with same name in an inner block,
the outer definition is inaccessible.
 
=={{header|AWK}}==
3,026

edits