Hello, Everybody,
I'm in doubts -- is the following
construction legal? I found it somewhere and
I'm wondering why it works:
module mod
integer :: length = -1
contains
subroutine setup()
length = 10
end subroutine setup
subroutine exploit()
! declarations of internal variables:
real :: array(length)
! executable code:
array = ...
end subroutine exploit
end module mod
Alexei
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|