Re: a problem in subroutine
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2008 05:46:11 -0800
James Giles wrote:
glen herrmannsfeldt wrote:
I believe it is illegal in Fortran 66. END is a non-executable
statement, such that control should never reach it.
In fact, in Fortran 66 it wasn't a statement of any kind. It
was specified in the standard document as an "end line".
This distinguished it from a comment line or a source
line. Rather like Fortran 90's INCLUDE line.
It seems that it is distinguished such that it must be
written on only one line, with no continuations.
Though I did once, before I knew that rule, try:
E
XN
XD
With VAX/VMS Fortran and it worked.
Not allowing continuations means the compiler can
detect END without reading the following line (to
check for continuations).
There is also:
"Any program unit consists of statements and comments."
Since END isn't a comment, that makes it seem like a statement,
but statements are allowed continuations...
It is, at least, not an executable statement.
-- glen
.
- Follow-Ups:
- Re: a problem in subroutine
- From: James Giles
- Re: a problem in subroutine
- References:
- a problem in subroutine
- From: Fatemeh
- Re: a problem in subroutine
- From: Craig Powers
- Re: a problem in subroutine
- From: Terence
- Re: a problem in subroutine
- From: Richard Maine
- Re: a problem in subroutine
- From: glen herrmannsfeldt
- Re: a problem in subroutine
- From: James Giles
- a problem in subroutine
- Prev by Date: Re: Memory Leak Problem
- Next by Date: Pointer arithmetic with C_F_POINTER
- Previous by thread: Re: a problem in subroutine
- Next by thread: Re: a problem in subroutine
- Index(es):