Flow-control structures: Difference between revisions

m
→‎The basic: GO TO label: with details, however.
m (→‎{{header|Go}}: little technicalities)
m (→‎The basic: GO TO label: with details, however.)
Line 593:
=={{header|Fortran}}==
===The basic: GO TO ''label''===
Fortran offers <code>GO TO ''label''</code> where ''label'' is a number, an integer, which is prefixed to some executable statement according to the rules of Fortran source layout. It is not considered to be a numerical value, though zero is not an allowed label and leading zero digits are ignored. Fortran has no reserved words and gives no significance to spaces, so that <code>G O TO 12 3 4</code> is just as valid as <code>GO TO 1234</code> and other usages. AsText alabels resultare ofnot thisallowed, texthowever labelsa arestatement difficultsuch toas fit<code>GO intoTO theSTART</code> syntaxis possible. Even so, that"START" is not itself a label, but the likesname of <code>GOa TOvariable START</code>which areis (normally)used unavailable.in special ways - see the ASSIGN statement usage, below.
 
===Elaborations on GO TO===
1,220

edits