On Tue, 2 Dec 1997 [log in to unmask] wrote:
> directly provide a short circuiting operator, e.g., .ANDTHEN., similar to
> that of Ada, the other is to extend the syntax of the IF statement
>
> IF (K .GT. 0) THEN IF (X(K) .GT. 0.) THEN
> . . .
Isn't that already permitted by the Fortran Standard? Section 8.1.2.4
says that an IF statement cannot have an "if-stmt" as its action-stmt, but
as far as I can see the IF( )THEN statement does not count as an "if-stmt"
within the meaning of the rules, it's something quite different: the start
of an IF construct. This isn't a terribly elegant syntax, but it does
seem to be allowed already. Or have I missed something?
--
Clive Page, Internet: [log in to unmask]
Dept of Physics & Astronomy,
University of Leicester, Phone +44 116 252 3551
Leicester, LE1 7RH, U.K. Fax +44 116 252 3311
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|