home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!still3.chem.columbia.edu!shenkin
- From: shenkin@still3.chem.columbia.edu (Peter Shenkin)
- Subject: Re: Jumping from nested subroutine to main directly?
- References: <1992Nov21.015026.17820@netcom.com>
- Sender: nobody@ctr.columbia.edu
- Organization: Dept. of Chem, Columbia U, New York
- Date: Sat, 21 Nov 1992 19:56:09 GMT
- Message-ID: <1992Nov21.195609.13987@sol.ctr.columbia.edu>
- X-Posted-From: still3.chem.columbia.edu
- NNTP-Posting-Host: sol.ctr.columbia.edu
- Lines: 16
-
- In article <1992Nov21.015026.17820@netcom.com> jchauvin@netcom.com (John H. Chauvin) writes:
- >Is it possible to transfer control from a nested subroutine directly to the
- >main routine without have to execute multiple returns from all the
- >subroutines in between? I would like a way of exiting directly to the main
- >routine when a error is detected six or seven subroutines down.
-
- No, you cannot; but executing the multiple returns can be simplifed by
- the adoption of the alternate return dummy parameter for the use of
- error handling. (The sole use, preferably.)
-
- -P.
- --
- ************************f*u*cn*rd*ths*u*cn*gt*a*gd*jb*************************
- Peter S. Shenkin shenkin@still3.chem.columbia.edu Columbia Univ., Chemistry
- ********* DEMOCRACY: The theory that the people know what they want, ********
- ********** and deserve to get it good and hard. -- H. L. Mencken ************
-