Replace IOSTAT_END and IOSTAT_EOR with Functions

To:	J3

From:	Craig Dedo

Subject:	Replace IOSTAT_END and IOSTAT_EOR with Functions

Date:	April 1, 2003

This paper addresses US comment 2.9.

Edits refer to 02-007r3.

[216:14]	Change "a processor-dependent" to "the processor-dependent".

[294:7+]	Add the following entries to the table in section 13.5.17:

IS_IOSTAT_END (I)	Test for end-of-file condition

IS_IOSTAT_EOR (I)	Test for end-of-record condition

[319:27+]	Add the following:

13.7.54a	IS_IOSTAT_END ( I )

Description. Determine whether the argument value indicates an end-of-file condition.

Class. Elemental function

Argument. I shall be of type integer.

Result Characteristics. Default logical.

Result Value. The result has the value true if and only if I is a value that could be assigned to the scalar-int-variable in an IOSTAT= specifier to indicate an end-of-file condition (9.10.2).

13.7.54b	IS_IOSTAT_EOR ( I )

Description. Determine whether the argument value indicates an end-of-record condition.

Class. Elemental function

Argument. I shall be of type integer.

Result Characteristics. Default logical.

Result Value. The result has the value true if and only if I is a value that could be assigned to the scalar-int-variable in an IOSTAT= specifier to indicate an end-of-record condition (9.10.3).

[451:32]	Change "the value . . . module" to "a value that would cause the result value of the IS_IOSTAT_EOR intrinsic function (13.7.54b ) to be true".]

References

02-007r3, Fortran 2000 Draft

[End of J3 / 03-103r2]