4 ms·
You are right that alternate return labels have been included in more recent FORTRAN standards. Nevertheless, this feature is much less useful in FORTRAN than
by adrian_b 5y ago
You are right that alternate return labels have been included in more recent FORTRAN standards.
Nevertheless, this feature is much less useful in FORTRAN than in laguages like PL/I, because the FORTRAN labels are restricted to numbers.
Unless you use a preprocessor, you cannot give descriptive names to the error handlers, so the equivalent FORTRAN code looks much uglier than in PL/I.
- gnufx 5y agoIn which FORTRAN IV dialects was it the same as in PL/I? I should have said that alternate return is obsolescent in recent Fortran, and I don't remember ever feeling the need to use it, at least for error-handling.