Re: Redefining a numeric constant in Fortran

From: Richard Maine (nospam_at_see.signature)
Date: 01/17/05


Date: Sun, 16 Jan 2005 22:47:48 -0800

beliavsky@aol.com writes:

> Was this (the ability to redefine the value of '7') ever really true of
> Fortran, or a particular Fortran compilers?

It was never true of Fortran the language. It was common behavior for
many Fortran compilers in the presense of a oparticular style of
nonstandard code.

In those days, people often didn't distinguish between the language
and a particular compiler. Many people didn't even know that there
was such a thing as a standard; they just considered the language
to be defined by whatever compiler they were using at the time.
(Of course, some still work in that mode, but in those days it was
almost everyone).

In training new Fortran programers, I used to "lead" them into making
the error of changing a constant so that I could point it out. I
figured it was better for them to encounter the strange symptoms while
"under supervision" as it were.

In a way, it was almost a disappointment when this error started
generating error messages about things like trying to modify
read-only memory or something of the sort. That made the debugging
so much simpler that my help was scarcely needed. :-)

-- 
Richard Maine
email: my last name at domain
domain: summertriangle dot net


Relevant Pages

  • Re: Upgrading an OLD (Fortran Powerstation 4.0) compiler
    ... Microsoft exited the Fortran compiler business, ... which still sells Compaq Visual Fortran ... Fortran compilers of Intel, including Intel Visual Fortran for Windows, ...
    (comp.lang.fortran)
  • Re: Fortran vs Python - Newbie Question
    ... language with many meritorious implementations. ... Gfortran, which supports Fortran 95 and a little of Fortran 2003, is ... Intel's Fortran compilers ...
    (comp.lang.python)
  • Re: Current languages are a mess, what would you choose C#, Java or C++?
    ... >understand (explicit understanding of math operations is necessary ... In Fortran 95, with its array operations and clean syntax (in the free ... vendors of Fortran compilers (Absoft, IBM, Intel, Lahey/Fujitsu, ... approved Fortran 2003 standard, and this is one of the first features ...
    (comp.programming)
  • Re: printing logical variables as "true" and "false"
    ... Actually, the DEC family of Fortran compilers did this, too. ... The massive advantage of the LSB defining LOGICAL values like ... Fortran LOGICAL operations. ...
    (comp.lang.fortran)
  • Re: using ERR=
    ... OTOH, CDC's Fortran compilers ... >> language and those that did chose varying syntax for the extensions. ...
    (comp.lang.fortran)