Fortran Modern alternatives to historical features Assigned GOTO


Example

Assigned GOTO uses integer variable to which a statement label is assigned using the ASSIGN statement.

100 CONTINUE

...

ASSIGN 100 TO ILABEL

...


GOTO ILABEL

Assigned GOTO is obsolescent in Fortran 90 and deleted in Fortran 95 and later. It can be avoided in modern code by using procedures, internal procedures, procedure pointers and other features.