Re: Is this legal Fortran 77?

From: Richard Maine (nospam_at_see.signature)
Date: 10/29/03


Date: 28 Oct 2003 15:14:51 -0800

mdklatt@ou.edu (Michael Klatt) writes:

> I've got a Fotran 77 program that I'm trying to debug, but there are
> things in there that don't look like any F77 I remember....
...
> I had the thought that maybe there was a translation error somewhere
> along the way and that "DIM BUF" above is really supposed to be a
> single variable like DIM_BUF. I made that change, but there was no
> effect in the compilation (no errors, same warnings), and I get the
> same runtime errors.

You have forgotten one of the old "features" of Fortran inherited
from days long ago, and finally going out with free source form.

Blanks don't matter (except in character contexts). DIM BUF is the
same thing as DIMBUF (no underscore; underscores aren't in the
Fortran character set at all until f90).

I will avoid offending young ears by saying what I think of this as a
coding practice, but it was legal f77 (and f90/f95/f2003 in fixed source
form).

I didn't (yet?) follow the link to see the code there or to try to see
what warnings I get from it (you didn't mention), but I wouldn't
expect any warnings or problems from this. Well, you might have
problems with human readers getting confused (apparently :-)), but
we aren't counting that. And while I might think it amusing to
have a compiler warn about such things, the kinds of messages I'd
have it put out probably wouldn't help sales. :-) I don't off-hand
know of any compilers that warn about "blank abuse" in fixed source
form.

-- 
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

  • 2.6.17-rt1 : x86_64 oops
    ... compilation problem and a bunch of warnings in slab.c. ... | preempt count: 00000001] ... The compilation and warning fix patch is below. ...
    (Linux-Kernel)
  • Re: Intel G965 graphics, X.org 7.2, and FreeBSD 6.2-RELEASE
    ... extern declaration of 'bus_release_resources' ... So is just it stopping because of the warnings? ... special compilation flags. ... assume that agp is in the kernel. ...
    (comp.unix.bsd.freebsd.misc)
  • spca5xx webcam driver not compiling on 2.6.13-rc4-RT-V0.7.52-07
    ... Building SPCA5XX driver for 2.5/2.6 kernel. ... all the warnings up to the error occur on a vanilla kernel compilation, ...
    (Linux-Kernel)
  • Re: Error List Messages?
    ... #pragma message("This message will be output during the compilation ... > In the error list tab, you have a button for errors, warnings and ... > Now you can produce errors and warnings by using #error and #warning. ... > tasklist items, ...
    (microsoft.public.vstudio.general)
  • Re: FMF Models usage
    ... conversions.vhd (in the fmf library) ... The compilation won't start if a file is not edited since the ... But i'm using Xilinx "Ise Simulator" itself. ... CASE 1 worked (though it gave me warnings, ...
    (comp.lang.vhdl)