J3/05-231r3 Date: 2005 August 9 To: J3 From: Dan Nagle Subject: Enhanced STOP References: 04-102, 04-265r1, 04-319, 04-319r2 This paper attempts to provide edits to implement the detailed specification of the enhanced stop item, viz Detailed Specification: (Task J3-001) (1) The stop code shall be allowed to be a scalar initialization expression of type default integer or default character. (2) Recommend that the stop code be displayed on ERROR_UNIT. (3) Recommend that if the stop code is of integer type, it should be used as the process exit status (if the processor even has such a concept). (4) Note that the processor might use only a portion of such a stop code for the exit status. Syntax: STOP [] where may be either a scalar default integer initialization expression or a scalar default character initialization expression. Edits: pertain to section 8.4 STOP Statement page 170 of 04-007 [170:22-23] Change R850 to " <> <> C8?? (R850) The shall be of default kind. C8?? (R850) The shall be of default kind." [170:24] delete C834 [170:26-27] In the following paragraph, delete the second sentence "Leading zero digits in the stop code are not significant." [170:29+] Add a paragraph: "It is recommended that the is made available by formatted output to the processor-dependent external unit identified by the named constant ERROR_UNIT of the ISO_FORTRAN_ENV intrinsic module (Section 9.4)." Add a Note following the paragraph: "Note 8.21+ If the is an integer, in addition to recommending its being printed to ERROR_UNIT, it is recommended that the value be used as the process exit status, if the operating system supports that concept. If the integer is used as the process exit status, the operating system might be able to interpret only values within a limited range, or only a limited portion of the integer value (for example, only the least-significant 8 bits)." History: Submitted by paper 04-102 at meeting 167. Details submitted by paper 04-319 at meeting 169. Suggested revision by paper 04-319r2 at meeting 169. Passed as an A item in Delft by WG5 Pass 05-231r3 at 173.