Question about structures,intent(in),pointer elements

Rimvydas Jasinskas rimvydasjas@gmail.com
Sat Feb 1 14:30:00 GMT 2014


>    logical, target :: foo3 = .true.
>    bar3=>foo3
This is not what I exactly intend.
I prefer to avoid targets, since this leads to:
if (associated(xxx)) deallocate(xxx) stuff.

sub prep
logical,pointer :: bar3(:)
allocate(bar3(1024))

sub foo(bar3)
logical,pointer    ,intent(in) :: bar3(:)



More information about the Fortran mailing list