Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: exit code function

9 views
Skip to first unread message

Robin Vowels

unread,
Oct 28, 2011, 4:23:29 AM10/28/11
to
On Oct 26, 9:19 pm, Wolfgang Kilian <see...@domain.invalid> wrote:

> One of the major omissions in modern Fortran: no exception handling (in
> the sense of try .. catch ... or whatever).  A Fortran way of catching
> errors/exceptions is setting a module variable, maybe in some special
> error-handling module, and ignoring the exception in the function,
> leaving it to the caller.  However, the result is used in an expression
> despite the exception (if it is a function, not a subroutine), setting a
> module variable makes the function impure, and so it does not go along
> well with modern parallel processing.  My personal dream would have been
> exception handling coming along with the 2008 coarrays ...

You might like to consider using PL/I, which has
error-trapping facilities along the lines that you mention.
0 new messages