Re: Does this string processing work for you?
- From: "Arjen Markus" <arjen.markus@xxxxxxxxxx>
- Date: 29 Sep 2005 00:19:30 -0700
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
.
- Follow-Ups:
- Re: Does this string processing work for you?
- From: David Frank
- Re: Does this string processing work for you?
- References:
- Does this string processing work for you?
- From: David Frank
- Re: Does this string processing work for you?
- From: Herman D . Knoble
- Re: Does this string processing work for you?
- From: David Frank
- Does this string processing work for you?
- Prev by Date: Re: Can Fortran Use This C Variable Directly Via "external" Decl?
- Next by Date: compilation cascades and new Fortran features
- Previous by thread: Re: Does this string processing work for you?
- Next by thread: Re: Does this string processing work for you?
- Index(es):