Introduce Implicit None

Description:  Adds IMPLICIT NONE statements to a file and adds explicit declarations for all variables that were previously declared implicitly.

State: Implemeted         Author: Jeff Overbey, Timofey Yuvashev   Version:   Photran 5.0

Code Example:

    program main
    a=1
    b=2
    i=3
    j=4

contains
subroutine s
    implicit integer (a-c), complex(h) , real(w)

    c=1
    h=(4,5)
    w=3.0
end subroutine

end program

    program main
    implicit none
    real :: a
    real :: b
    integer :: i
    integer :: j
    a=1
    b=2
    i=3
    j=4

contains
subroutine s
    implicit none
    integer :: c
    complex :: h
    real :: w

    c=1
    h=(4,5)
    w=3.0
end subroutine

end program


ScreenShots

              

HTML Comment Box is loading comments...