Re: Array Constructors



On Feb 28, 12:52 pm, Jan Vorbrüggen <jvorbrueg...@xxxxxxxxxxxxxxx>
wrote:

Do note that both I/O and DATA statement implied do loops go "way back".
So the difference isn't something new. People wouldn't yet have had a
chance to get annoyed enough at me to want to give me the chance to make
a fool of myself. Well, my parents were probably pretty frustrated, but
that's another matter. :-)

Hmmm...has that difference been pointed out, with all its consequences, in
the Fortran standard prior to F90?

More or less. Fortran 77 says, for data-implied-do:

"The appearance of an implied-DO-variable name in a DATA statement
does not affect the definition status of a variable of the same name
in the same program unit."

There is no similar text for I/O implied DO and the wording in F77 and
later indicates that it is processed like a normal DO, as noted by
others in this thread.

Steve

.