Re: "Scope" or "Environment"? Your observations wanted

David-Sarah Hopwood <david.hopwood-mRVxzIiVagSlV3Ge8JjJtnfLna9zW77MtUK59QYPAWc@public.gmane.org>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
Kevin Reid wrote:
> I've been arguing (to MarkM) that the thing which E-on-Java calls  
> Scope should be called Environment, or Env.
> 
> What is now called Scope is a collection of nouns (variable names)  
> associated with slots providing the values for those nouns.
> 
> I have said that a "scope" actually refers to the textual region in  
> which a variable is visible; i.e. it is static, and a property of the  
> program, whereas "environment" refers to the runtime state, what the  
> variables in some scope are bound to in the execution under  
> consideration.
> 
> Am I wrong?

No, that's correct AFAIU.

(For completeness, the other term commonly used together with "scope"
and "environment", is "extent", which is the period of time in which
a variable can potentially be referred to.)

-- 
David-Sarah Hopwood
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.