Re: Fortran
- From: "robin" <robin_v@xxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 00:55:54 GMT
David Flower wrote in message <1138609799.990854.313820@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
>
>robin wrote:
>> David Flower wrote in message <1138351617.714373.148640@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
>> >
>> >If you are new to FORTRAN, I would suggest starting with FORTRAN 77; it
>> >is a sensibloe subset of the 95 standard, although there is always
>> >something that you want from the 95 standard!
>>
>> I wouldn't advise that.
>> The raison d'etre of Fortran 90 and successors is that
>> it eliminates many pitfalls of Fortran 77.
>>
>> It's better right from the start to begin with a Fortran 90
>> or later compiler, and to learn the newer facilities.
>
>Well, I do not seem to have much support out there!
>
>My point was that there is relatively little in FORTRAN 77 that someone
>programming in FORTRAN 90 would need to unlearn.
>
>FORTRAN 90 contains many extensions over FORTRAN 77,
And a great number of improvements.
Some are small, but others are substantial, that combined it
is not worth the trouble of using F77 Some are:
1. Use of > instead of .GT. etc
2. Free form source, which eliminates some common errors
3. avoidance of COMMON and EQUIVALENCE
4. virtual elimination of mis-spelled identifiers
5. avoidance of adjustable dimensions
6. avoidance of mis-matched arguments and dummy arguments.
The avoidance of trivial errors cannot be over-emphasised, for
example,
IF (X .GT .1) C = D
contains a bug that's easily overlooked, namely, that the
test compares X and 1 instead of X and 0.1
and then there are the usual problems of l and 1, 0 and O, and so on.
> and I suspect that
>most programmers have never used a substantial fraction of them!
>However, these same extensions could complicate the learning process.
Not a single one of them does.
>In fact, my personal view is that FORTRAN 90 is structured wrongly; I
>believe that it should have been defined as a core (FORTRAN 77) with a
>set of extensions (e.g.Array assignments etc.). Users would be able to
>specify which extensions they wished to use in any given compilation.
>Compiler suppliers would be able to issue compilers incorporating only
>some of the extensions. Before condemning thos structure outright, ask
>yourself. Would I prefer a compiler tha incorporates the extensions I
>actually require, or a less reliable one that incorporates the full
>FORTRAN 90 ?
And if you're looking for a neat subset, then
consider using F, or ELF90.
.
- Follow-Ups:
- Re: Fortran
- From: Sjouke Burry
- Re: Fortran
- References:
- fortran
- From: ipodevan
- Re: fortran
- From: David Flower
- Re: fortran
- From: robin
- Re: fortran
- From: David Flower
- fortran
- Prev by Date: Re: Open Watcom Fortran compiler help needed
- Next by Date: Re: Open Watcom Fortran compiler help needed
- Previous by thread: Re: fortran
- Next by thread: Re: Fortran
- Index(es):
Relevant Pages
|
|