Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



In 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: