Richard Maine wrote:
> --On Friday, September 3, 2004 3:31 PM -0400 Jean Vezina
> <[log in to unmask]> wrote:
>
>> What causes the problem is the string 5*abc
>>
>> Is it allowed to have a repeat count before
>> an undelimited character string ?
>
> Yes. You can't have something like 5* as part of an
> undelimited character string (that's item 4 in the list
> of things you can't have). That restriction resolves
> what would otherwise be a potential ambiguity.
Since the 5* is not part of the undelimited string in this
example, but is *intended* to be a repeat count, how does
item 4 apply?
> F2003 even has specific mention of the case of a repeat
> count followed by an undelimitted character string, which makes
> the answer pretty unambiguous. That mention was to clear up
> a more subtle point that came up in an interp. Hmm, probably
> an f95 interp, so I suspect that same mention is in one of the
> f95 corrigenda, even though I don't see it in the original f95...
> Yep, there it is. It is in f95 corrigenda 2.
For those of us with difficulty navigating the mysteries of the
j3-fortran website, could you be more specific about the
potential ambiguity? I don't see the mention in the F2003
document (unless it was added after the FDC). Nor can
I think of an ambiguous case. (I suppose with 20 minutes of
spare time I could track down f95 corrigenda 2, and hope
it's written in normal English.)
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
|