Re: Converting fixed-to-free format




"Ken Plotkin" <kplotkin@xxxxxxxxxxxxxx> wrote in message
news:b5bn42hts9oait8npan2745v53n6960515@xxxxxxxxxx
On Sat, 22 Apr 2006 09:21:18 GMT, "robin" <robin_v@xxxxxxxxxxx> wrote:

[snip]
As I said before, it isn't possible to make fixed form "safe".
Ask youself why free source form was introduced.
Because it eliminates the errors that fixed source form
allows to slip through.
[snip]

What errors - other than those associated with column restrictions -
does free form eliminate?

As well as columnar erors, there are errors involving omitted
commas and periods.
Some of these are invited because Fortran permits blanks anywhere.
IF (A .GT .5) THEN
Missing comma at the end of a line that is continued to the next
(in, say, an argument list).
Use of comma in place of a fullstop and vice versa.


.



Relevant Pages

  • Re: Converting fixed-to-free format
    ... It never did [trigger a message]. ... All would be the result of trying to parse the *crap* as ... Lines longer than 72 in fixed source form are common. ... Converting to free source form should be the first step. ...
    (comp.lang.fortran)
  • Re: Help requested troubleshooting code
    ... I suppose the reason why my program identifier contained a space as in prandtl meyer was because I had originally used prandtl_meyer and my compiler gfortran complained about the underscore, and I figured that it might have been an invalid character to use in the program statement. ... difference between fixed source form and this other form you prefer? ... about fixed source form, ... The simillar thing in free source form is that you can't go past ...
    (comp.lang.fortran)
  • Re: Fortran 77 vs Fortran 90/95
    ... That's sort of the nature of new features. ... My observation is that free source form is one of the most widely ... people mean when they talk about f77 plus common extensions. ...
    (comp.lang.fortran)
  • Re: Absoft Fortran Problem
    ... least once the continuation issues get worked out. ... I'm confused, and perhaps the OP is as well, about whether this is f77 ... For fixed source form, which is the only option in f77, you would be ... For f90 free source form, the advice to put the & only on the second ...
    (comp.lang.fortran)
  • Re: NEWBIE QUESTION
    ... >as opposed to fixed source form although free source form was introduced ... name ending .f is in fixed source form, but in .f90 is free source form. ... Some compilers have options like -free or -fixed for specifying it. ...
    (comp.lang.fortran)