I suppose the type of Y below is REAL.
SUBROUTINE F(X, Y)
C IMPLICIT NONE
REAL :: X, Y
C REAL :: A, B
C REAL, PARAMETER :: C = 3.14E0
C X = Y + 2 * SIN(Y)
END
But what is it's type here?
SUBROUTINE F(X, Y)
C IMPLICIT NONE
REAL X, Y
C REAL :: A, B
C REAL, PARAMETER :: C = 3.14E0
C X = Y + 2 * SIN(Y)
END
Is it implicitly typed or REAL because of the REAL token at beginning of that line? I mean what's the scope of a type declaration, just up to the , or all the way to the end of line?
And what purpose does :: serve?
(Sorry, working on a parser in a confused state at midnight makes you afraid of making wrong assumptions and wisdom of the moment says go consult others with more experience.)