Re: Scope of implicit none



dpb wrote:

Gary Scott wrote:
...

Not really, because they could have retained implicit typing rules as they were for fixed form source. It was a natural to introduce free form source with implicit none as the default.


At the cost of introducing another dichotomy of remembering the differing rules.

Seems to me this is one that fits the compiler switch as user-selectable as a solution...

--
Of course, that is a natural solution. I'd still prefer the default to be "implicit none". However, unless it is standardized, there isn't even a requirement for a compiler to provide such a switch. But F90 was a lost opportunity to do it right.

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

If you want to do the impossible, don't hire an expert because he knows it can't be done.

-- Henry Ford
.



Relevant Pages

  • Re: WG5-J3 Joint Meeting
    ... I like the idea of a subroutine interface "implicit none" ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: Short records on unformatted reads
    ... implicit none ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: Scope of implicit none
    ... If you remember, IMPLICIT NONE was not even allowed in f77, it would have been strange indeed to make something that was not even allowed in the current language the default in the next revision. ... Support the Original G95 Project: http://www.g95.org ...
    (comp.lang.fortran)
  • Re: How to enable XEN in 2.6.23-rcS kernel?
    ... I did read, that Lguest and Xen was merged to upstream and must be in 2.6.23-rc1 kernel, but I can't see it in "make menuconfig". ... how to enable XEN support? ... Perhaps it would be clearer to make CONFIG_PARAVIRT implicit. ...
    (Linux-Kernel)
  • Re: Scope of implicit none
    ... they were for fixed form source. ... It was a natural to introduce free form source with implicit none as the default. ...
    (comp.lang.fortran)