home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2902 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.7 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!cc.helsinki.fi!sundius
  2. From: sundius@cc.helsinki.fi
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Why CALL EXIT? (was Re: Question for C ==> Fortran)
  5. Message-ID: <1992Jul31.103917.1@cc.helsinki.fi>
  6. Date: 31 Jul 92 08:39:17 GMT
  7. References: <1992Jul29.134901.1@slacvx.slac.stanford.edu> <131935@lll-winken.LLNL.GOV> <30JUL199215540929@ltp2.gsfc.nasa.gov> <6881@charon.cwi.nl>
  8. Sender: news@klaava.Helsinki.FI (Uutis Ankka)
  9. Organization: University of Helsinki
  10. Lines: 23
  11.  
  12. In article <6881@charon.cwi.nl>, dik@cwi.nl (Dik T. Winter) writes:
  13. > Well, I know of systems were you get a non-zero exit status if your program
  14. > does not terminate with a STOP statement.
  15. > -- 
  16.  
  17. According to the FORTRAN 77 standard (ANSI X3.9-1978), the STOP statement
  18. causes the termination of execution of the executable program, and the
  19. END statement (when executed in the main program) terminates the execution
  20. of the executable program (pp. 11-9, 11-10). The STOP statement has an
  21. additional digit string or character constant which is "accessible" at
  22. the time of termination. According to page B-6 in the appendix, the 
  23. availability of this string depends on the processor. I could not find
  24. any reference to the CALL EXIT statement at all.
  25.  
  26. It thus seems that the omission of the STOP statement is fully permissible
  27. according to the standard.
  28.  
  29.  
  30. +--------------------------------------------------------------------+
  31. ! Tom Sundius                          Department of Physics         !
  32. ! Internet: sundius@cc.helsinki.fi     University of Helsinki        !
  33. ! BitNet:   SUNDIUS@FINUH              SF-00170 Helsinki, Finland    !
  34. +--------------------------------------------------------------------+
  35.