home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / fortran / 3018 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.0 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!asupowit
  2. From: asupowit@magnus.acs.ohio-state.edu (Aaron Supowit)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Why CALL EXIT? (was Re: Question for C ==> Fortran)
  5. Message-ID: <1992Aug3.193810.12198@magnus.acs.ohio-state.edu>
  6. Date: 3 Aug 92 19:38:10 GMT
  7. References: <1992Jul28.075514.28683@debbie.cc.nctu.edu.tw> <1992Jul29.134901.1@slacvx.slac.stanford.edu> <1992Jul29.204115.3917@walter.cray.com>
  8. Sender: news@magnus.acs.ohio-state.edu
  9. Organization: The Ohio State University
  10. Lines: 32
  11. Nntp-Posting-Host: top.magnus.acs.ohio-state.edu
  12.  
  13. In article <1992Jul29.204115.3917@walter.cray.com> wws@craywr.cray.com (Walter Spector) writes:
  14. >
  15. >In article <1992Jul29.134901.1@slacvx.slac.stanford.edu>, fairfield@slacvx.slac.stanford.edu writes:
  16. >|> [a bunch of stuff, then...]
  17. >|>         CALL EXIT
  18. >|>         END
  19. >|>
  20. >|> The "CALL EXIT" at the bottom is optional (more-or-less). A "STOP" statement
  21. >|> would do just as well.
  22. >
  23. >This is something I have never understood in almost 20 years of Fortran
  24. >programming.  Why do so many people use the non-standard CALL EXIT
  25. >instead of the standardized-for-over-25-years STOP statement?
  26. >Is/was there magic associated with it on some arcane systems?
  27. >
  28. >(At least there aren't many codes twiddling 'sense lights' anymore. :-)
  29. >
  30. >Walt
  31. >-- 
  32. >Walt Spector
  33. >(wws@renaissance.cray.com)
  34. >Sunnyvale, California
  35. >_._ _._ _.... _. ._.
  36.  
  37.  Originally STOP stop stopped the cpu (not the current program). Therefore many installations
  38. (such as the one where I was employed) prohibitted its use. CALL EXIT was a way to 
  39. terminate a program gracefully. With the advent of multi-programming environments, the 
  40. STOP statement's function was of necessity changes. To insure compatibility with old, existing
  41. programs, CALL EXIT was kept. People still use it because old habits die hard. I still
  42. see many things done which are old, old habits.
  43.  
  44.   Aaron Supowit - Ohio State University.
  45.