"Jean Vezina" <[log in to unmask]> wrote:
...
> I have this example code:
>
> character*10 a
> a='1234567890'
> forall(i=1:10)a(i:i) = a(11-i:11-i)
> print *,a
> end
>
> Is this standard conforming ? More exactly, are
> character substrings allowed in a FORALL statement ?
Looks good to me. The standard contains a note that states that
the assignment statement in a forall construct may be either an
array assignment or a scalar assignment. All the values of the
expression are computed and then the values are assigned to the
result locations. These assignments may occur in any order.
--
J. Giles
|