3 ms·
It would be nice if those labeled blocks could be written inline and anonymously - just pass a block as an argument rather than having to actually name the erro
by catern 5y ago
It would be nice if those labeled blocks could be written inline and anonymously - just pass a block as an argument rather than having to actually name the error handling block. Is that supported?
- adrian_b 5y agoNot in PL/I or in the other languages with this feature (ALGOL 60, FORTRAN IV). This could be an easy syntax extension, but then the only advantage remains the more efficient hardware implementation of the error handling. In that case you no longer have the separation in program text between the normal execution path and the error handlers, which removes visual clutter.
- gnufx 5y agoYou can pass a fatal error-handling routine to a Fortran subprogram, to be called with the error code.