Re: Is this legal Fortran 77?
From: Richard Maine (nospam_at_see.signature)
Date: 10/29/03
- Next message: Richard Maine: "Re: How to convert strings to numbers in fortran?"
- Previous message: Shea Martin: "Re: File writing performance"
- In reply to: Michael Klatt: "Is this legal Fortran 77?"
- Next in thread: Richard Maine: "Re: Is this legal Fortran 77?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Richard Maine: "Re: How to convert strings to numbers in fortran?"
- Previous message: Shea Martin: "Re: File writing performance"
- In reply to: Michael Klatt: "Is this legal Fortran 77?"
- Next in thread: Richard Maine: "Re: Is this legal Fortran 77?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|