J3/05-231r1 Date: 2005 July 30 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: (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. Edits: pertain to section 8.4 STOP Statement page 170 of 04-007 [170:21-22] Change R850 to <> <> [170:26-27] In the following paragraph, delete the second sentence "Leading zero digits in the stop code are not significant." [170:29+] Add two Notes following the paragraph: "Note 8.21+ When the is an integer constant, 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)." "Note 8.21++ The 'processor-dependent manner' by which a is made available is recommended to be by means of 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)." 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