Re: uniqueness of {if,do,case}-construct-name
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Sat, 30 Apr 2005 06:49:35 +0000 (UTC)
In article <nospam-03BE88.22161529042005@xxxxxxxxxxxxxxxxxx>,
Richard E Maine <nospam@xxxxxxxxxxxxx> writes:
> In article <d4uu27$pi1$1@xxxxxxxxxxxxxxxxxxxxxxx>,
> kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl) wrote:
>
>> I've read through Chapter 8 of Final Committe Draft of the
>> Fortran 95 standard, and I can't find where the if-construct-name,
>> do-construct-name, and case-construct-name are required to be
>> unique. Is such a constraint mandated by the standard?
>
> It isn't a constraint, but yes. You are looking in the wrong chapter.
> Pretty much all the name uniqueness stuff is in c14.
Thanks. I'll read Ch. 14, next.
> There's a proposal to lift this restriction in the standard after f2003.
> (I don't particularly favor the proposal, but I appear to be in a
> minority on that).
I'd be interesting in your reasoning. AFAICT, the construct-name
is local to the construct. For example, a EXIT or CYCLE in the 2nd
loop of the example code that I posted will not branch to the
end of the first loop.
--
Steve
http://troutmask.apl.washington.edu/~kargl/
.
- Follow-Ups:
- Re: uniqueness of {if,do,case}-construct-name
- From: Steven G. Kargl
- Re: uniqueness of {if,do,case}-construct-name
- From: James Van Buskirk
- Re: uniqueness of {if,do,case}-construct-name
- References:
- uniqueness of {if,do,case}-construct-name
- From: Steven G. Kargl
- Re: uniqueness of {if,do,case}-construct-name
- From: Richard E Maine
- uniqueness of {if,do,case}-construct-name
- Prev by Date: Re: Find the size of variables in Fortran
- Next by Date: Re: uniqueness of {if,do,case}-construct-name
- Previous by thread: Re: uniqueness of {if,do,case}-construct-name
- Next by thread: Re: uniqueness of {if,do,case}-construct-name
- Index(es):
Relevant Pages
|