Re: Strange Fortran version




Richard Maine wrote:
<john@xxxxxxxxxxxx> wrote:

I'm trying to compile an old (FORTRAN) program, but I can't really
identify the version of the language needed.

This isn't any standard or portable Fortran of any vintage. The things
you mention are non-standard features that have appeared on occasion in
some particular compilers. This kind of code was never very portable. I
couldn't name the exact compiler just based on this. Several old f66 or
early f77-era compilers used some forms like these....

....

4) SET=0.
IF (SET) ....

Use of a variable as boolean value? (also a la C?)

There are several variants of that one. I'd have to see what was in the
... and what the type of SET was. I'm assuming that SET here is REAL,
based on the clue of the assignment. In that case, if the ... is three
comma-separated statement labels, as in

IF (SET) 100, 200, 300

then that's a standard arithmetic IF, which (ought) to compile fine. ...

There were also some which had a "2-way" arithmetic if as well as the
Standard "3-way" above. It would look like

IF (SET) 100, 200

which was a shorthand for

IF (SET) 100, 200, 100

.



Relevant Pages

  • Re: Cant understand this! (Help required please)
    ... Yes and some online courses NETG does not seem to understand what ... > New to programming: ... I have heard of comeau don't they make compilers too? ... An argument I have used many times myself, I want to learn standard C++, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: GCC
    ... The header names changed explicitly to ... The Standard says that the standard ... that did not put iostream into the std namespace. ... and compilers change along with them. ...
    (Debian-User)
  • Re: subroutine stack and C machine model
    ... Herb has found out that a+bis ... Peter: But the STANDARD says... ... Most compilers have left to right evaluation as it happens. ... evidence appear to be more than one piece of evidence. ...
    (comp.lang.c)
  • Re: Should anyone be using modern Fortran any more?
    ... (Getting compilers to run or run with the right set of options has nothing to do with language standard.) ... any sort of computer language is a "convenience" - you could always go an work at the machine instruction level! ... on teaching and upgrading programmers by employers or the self-employed ...
    (comp.lang.fortran)
  • Re: man 3 switch
    ... As C is an ISO standard, I sincerely doubt there would be any ... syntax and behaviour of the keywords between C compilers on any Unix-like ... of arithmetic operators of equal precedence in the same statement (in ... The languages themselves normally aren't. ...
    (Fedora)