Re: Does this string processing work for you?



I strongly disagree with your conclusion that a few of the compliers
discussed
here "get it right". For one thing, why do they invariably conclude
_eight_
values have been read? Clearly, there are only seven valid values, so
in an
ideal world, the value of n should have been 7.

This gets rather tricky when you start using more complex
read-statements:

read( s, *, err=1 ) v(idvector)

where idvector is a vector of indices

There is no way in this statement that you can figure out how many
data were read!

Another thing where this goes awry, in my opinion, is the fact that the
string must end in space+non-digit, rather than simply a non-digit.

Regards,

Arjen

.