Scope/Function names and labels: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) m (removed typo 'fruby') |
(Added Algol W) |
||
Line 33: | Line 33: | ||
<br> |
<br> |
||
Note that labels cannot be defined between IF and THEN, between WHILE and DO and between CASE and IN. |
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}}== |
=={{header|AWK}}== |