Re: Statement function host association
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Thu, 19 May 2005 01:10:39 GMT
Richard Maine wrote:
....
> What the cited material is about is this. Given (from the rules
> elsewhere on host association) that you have an implicitly typed
> variable "shared" by host association, which scoping unit does it
> get its implicit typing from (since the implicit typing rules can be
> different in different scoping units)? The answer is the
> "outermost", "highest level", or whatever term is best. (And there
> always will be a unique highest level one).
The answer is not the "outermost" or the "highest level". It turns
out that the answer is *always* the "most local", "innermost", or
whatever term is best. No, that's not true either. It turns out that
there are no choices at all - there is only *one* possible scope to
choose from (as per the discussion with, and references cited by,
JvB). There should be no adjective used in describing the scoping
unit at all.
(There are only two places in the whole standard where terms
like "outer scope", etc., are even plausibly usable: both involve
CONTAINS. The two places are internal procedures and module
procedures. In both cases, "outer scope" might be read to mean
"host scope". There is no other sensible place to apply such terms
in the whole language. No other things described as "scoping units"
may be considered nested in any way at all. And, officially, those
are separate scopes too.)
--
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
.
- Follow-Ups:
- Re: Statement function host association
- From: Richard Maine
- Re: Statement function host association
- References:
- Statement function host association
- From: John Harper
- Re: Statement function host association
- From: John Harper
- Re: Statement function host association
- From: Richard E Maine
- Re: Statement function host association
- From: Ron Shepard
- Re: Statement function host association
- From: Jan Vorbrüggen
- Re: Statement function host association
- From: James Giles
- Re: Statement function host association
- From: Michael Metcalf
- Re: Statement function host association
- From: James Giles
- Re: Statement function host association
- From: Duane Bozarth
- Re: Statement function host association
- From: James Giles
- Re: Statement function host association
- From: James Van Buskirk
- Re: Statement function host association
- From: James Giles
- Re: Statement function host association
- From: Richard Maine
- Statement function host association
- Prev by Date: Re: Statement function host association
- Next by Date: Re: Statement function host association
- Previous by thread: Re: Statement function host association
- Next by thread: Re: Statement function host association
- Index(es):
Relevant Pages
|
|