home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / fortran / 4396 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.4 KB  |  30 lines

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