FORTRAN was my first programming language in the 1970s, but I cannot determine if the following FORTRAN code is valid. I have no way to compile or run the code.
SUBROUTINE ABC(PARM1, PARM2)
CHARACTER*40 projName
DATA projName /'...values...'/
C Lots of comments...
C VARIABLE DECLARATIONS BEGIN HERE (the exact wording)
IMPLICIT REAL*8(A-H,O-Z)
(the rest of the declarations)
. . .
All of the references say that the IMPLICIT statement must come before any declarations; however, this code apparently runs. My thoughts are that either (1) the IMPLICIT statement is ignored, or (2) this code is valid in some flavor of FORTRAN. If IMPLICIT is ignored, compile flags could have been used for the same purpose.
I need to decide valid/invalid and briefly justify my answer. Any ideas would be greatly appreciated.
Thanks, lac