Ampersand in the 5th column and at the end of the line

Today I came across some code that looks like this:

      subroutine sub(hello,world,this,routine,takes,a, &
     &   crazy,large,number,of,arguments,              &
     &   so,many,that,it,gets,split,across,four,       &
     &   lines)

Ampersands in column 5 seem to be in case the user wants to compile code with the f77 compiler. My question is, is the legit (standard) code of fortran 90. I suppose it is probably not the standard code of f77, since the final ampersands are not in column 73 either ... but if they were, it would be standard way to make compilers with free format and fixed format happy? In other words, does the fortran 90 standard mean that in the middle of the line are simply ignored (or something like that)?

+3
source share
3 answers

Fortran 90. , . Fortran , , , . (OP, , , .)

, , Fortran 90. . (, ), "-" (, ) , , , a &. , , , , & s .

- & s.

, , FORTRAN77 . , Fortran, , " ", "-, ", . , , - , , , .

OP, & s 73- , , . FORTRAN77 ( ) 6 . . , , a 73. OP , Fortran col 73-80, (ahh, happy days) 80 .

, . , . Fortran . , .

+5

, Fortran 90. "&", .

+1

, (F77) ( F90 ) . -, , & 6- . , F77-; , , - & 73. , , & 73 6 , Fortran, INCLUDE , .

0

All Articles