Re: Strange Fortran version
- From: "Terence" <tbwright@xxxxxxxxx>
- Date: 26 Aug 2006 15:14:16 -0700
I've seen all of these statement types before.
"ENTRY lable" was common in some Fortran IV subroutines and probably
F66 versions.
It defines an alternative entry point (a different same for the same
subroutine) on subroutines that were used in more than one way, usually
to avoid reinitialising something only wanted on a first entry (e.g.
seeded random number generator) or to use one of several alternative
initial code paragraphs before a common later section of code was
branched to in order to complete the general nature of the function
desired.
The "A=B=C=0." chained assignment I've seen with university-built
Fortran compilers (many were written as a higher exercise in M.SC tasks
and sometimes then used at lower levels by other students, and possibly
research students who sought advice on computational work. I remember
this was commonly recommended as a change to the Fortran specifations,
to make intentions clear.
I think is was valid in Pascal and some forms of Basic.
I cannot recall seeing any use of a computational IF that used a real
variable but then later tested against integer values, but in
principal, the integer test values should be converted to float in the
compilation (since float is the higher form) and the intepretation
would be correct (for those days).
..
Terence Wright
.
- Follow-Ups:
- Re: Strange Fortran version
- From: Ron Shepard
- Re: Strange Fortran version
- From: Richard Maine
- Re: Strange Fortran version
- References:
- Strange Fortran version
- From: john
- Re: Strange Fortran version
- From: Richard Maine
- Re: Strange Fortran version
- From: john
- Strange Fortran version
- Prev by Date: problem with logical function and intel fortran
- Next by Date: Re: problem with logical function and intel fortran
- Previous by thread: Re: Strange Fortran version
- Next by thread: Re: Strange Fortran version
- Index(es):
Relevant Pages
|