home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!gatech!ukma!nsisrv!ltp2.gsfc.nasa.gov!gumley
- From: gumley@ltp2.gsfc.nasa.gov (Liam E. Gumley)
- Subject: Re: Why CALL EXIT? (was Re: Question for C ==> Fortran)
- Message-ID: <30JUL199215540929@ltp2.gsfc.nasa.gov>
- News-Software: VAX/VMS VNEWS 1.4-b1
- Keywords: why ask why
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: ltp2.gsfc.nasa.gov
- Organization: NASA-GSFC LTP Computing Facility Code 920.2
- References: <1992Jul28.075514.28683@debbie.cc.nctu.edu.tw> <1992Jul29.134901.1@slacvx.slac.stanford.edu> <131935@lll-winken.LLNL.GOV>
- Date: Thu, 30 Jul 1992 20:54:00 GMT
- Lines: 29
-
- In article <131935@lll-winken.LLNL.GOV>, miller@icf.llnl.gov (Pat Miller) writes...
- >
- >In article <1992Jul29.204115.3917@walter.cray.com>, wws@craywr.cray.com
- >(Walter Spector) writes:
- >|> This is something I have never understood in almost 20 years of Fortran
- >|> programming. Why do so many people use the non-standard CALL EXIT
- >|> instead of the standardized-for-over-25-years STOP statement?
- >|> Is/was there magic associated with it on some arcane systems?
- >
- >On some older systems, exiting with a STOP printed some silly information
- >that was useful in a BATCH (eek) context, but was annoying in an
- >interactive mode. Using the non-standard exit made for a visually
- >clean exit.
- >
-
- Well folks I used to use the STOP statement all the time, but I got
- really tired of the message it would print on execution (does it in MS-Fortran
- and SGI MIPS Fortran). So I left it out completely. At the end of a main
- program, I typically just close any files, then put an END statement.
- It works. Seems to me the only place you should have a STOP statement is
- at the end of a main program anyway. So why not do away with it?
-
- Cheers,
- Liam.
- --
- Liam E. Gumley | Phone : (301) 982-3700
- NASA/GSFC MODIS Science Data Support Team | Fax : (301) 982-3749
- Research and Data Systems Corporation | Internet : gumley@ltp.gsfc.nasa.gov
- Greenbelt MD, USA | Opinions expressed here are my own!
-