Re: double confusion



On Mon, 17 Jul 2006 07:47:53 -0700, Ian Bush wrote
(in article <e9g3sr$1kg$1@xxxxxxxxxxxxxxxxxxxxxxx>):

BTW as hinted above you seem to be using Fortran 77, which is 3 standard
revisions
out of date. I would suggest if you want to start using Fortran again you
look
into Fortran 90 & 95,

Particularly since Fortran 90 and 95 provide exactly what the OP seems
to want, which is the ability to declare the type of a function in only
one place instead of having to do it both in the function and in every
scoping unit that invokes the function.

In Fortran 77, all user-written procedures are external. (Oh, or I
almost forgot about statement functions, but... well I'll ignore that).
External procedures are designed to be compiled separately. Fortran 90
adds internal and module procedures, both of which seem to have the
property that the OP wants.

There isn't much to be gained by complaining that a 25-year-old version
of the language doesn't act as you would like today, when the current
versions do act that way. I am reminded of a (much more extreme) case,
where a person was advocating for something to be added to f77. When it
was pointed out that f90 added exactly that, the poster said that was
inadequate because he could not or would not change to a new compiler.
I was puzzled as to how he expected any change to magically appear in
his existing compiler. The current question doesn't have the
contradictory element that so puzzled me in that other case, but it
does share the aspect of seeking something that already exists.

--
Richard Maine | Good judgment comes from
experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain

.



Relevant Pages

  • Re: A question on Newtons Method
    ... >> I can't believe you'd advise a noob to use a compiler which is still ... > production codes and codes from textbooks. ... > The Fortran standard generally does not specify the required behavior ... >> another important class of hassle which most numerical programmers ...
    (sci.math.num-analysis)
  • Fortran Resources (June)
    ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... are available for Linux systems. ...
    (comp.lang.fortran)
  • Fortran Resources (July 2004)
    ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... are available for Linux systems. ...
    (comp.lang.fortran)
  • Fortran Resources (August 2004)
    ... and the standard for the Fortran language and its derivatives. ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... and Linux include source-compatible Fortran 95 compiler suites ... are available for Linux systems. ...
    (comp.lang.fortran)
  • Fortran Resources (Last Issue)
    ... the, then, new Fortran 90. ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... The Fortran Company offers F, the subset language, for Unix and Windows, ...
    (comp.lang.fortran)