Re: best way to use the USE statement



Richard E Maine wrote:
....
For what it is worth, I'm in the camp of putting all the USE
statements at the top of the module. My main reason is that I
consider it to be part of the high-level information to know what
other modules this one might have dependencies on. I find that more
important than knowing which modules each subroutine depends on.
After all, I have to compile the module as a whole - not each
subroutine separately.

But several people whose judgement I respect are in the other camp.

I'd agree with you *if* I could control host association. As it
is, there are cases where one is more legible, and there are cases
where the other is.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare


.



Relevant Pages

  • Re: Fortran to edit one line of text file
    ... Of course most of those will also read and rewrite the whole ... original code uses list-directed writes. ... there's no reason to expect the same number ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Static version of bignum library
    ... Profiling is all you need to do to figure out the ... be lying, mistaken, or correct. ... At any rate there is no reason to get ... no deficiencies and the other way is to make it so complicated ...
    (comp.programming)
  • Re: Static version of bignum library
    ... Profiling is all you need to do to figure out the ... be lying, mistaken, or correct. ... At any rate there is no reason to get ... no deficiencies and the other way is to make it so complicated ...
    (sci.crypt)
  • Re: exit and reenter a subroutine
    ... Richard E Maine wrote: ... How do you exit a subroutine, then come back in the place where you ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Ten Commandments for Fortran Programming?
    ... There are two general reasons to use a named constant ... The second reason is that it's a value that's constant within ... array bounds of your main arrays may be ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)