Re: Scope
- From: Dave Thompson <david.thompson1@xxxxxxxxxxxxxxxx>
- Date: Mon, 20 Jun 2005 06:32:52 GMT
On Thu, 16 Jun 2005 17:27:19 -0700, Richard E Maine
<nospam@xxxxxxxxxxxxx> wrote:
<snip>
> While I'm on terminology, what you were asking about isn't scope. Scope
> is not about time. It is purely textual, relating to where in the text
> of the program you can refer to a name. <snip> The standard doesn't
> have a term for the concept, but if I were to try to coin one, I might
> use something like "duration" or "lifetime".
FWIW the C standard uses 'duration'. And C++ uses both, for slightly
different meanings: 'duration' is when the memory is (guaranteed to
be) allocated, and 'lifetime' is when within the duration it contains
a proper object value in the OO sense -- that is, the constructor has
completed and presumably acquired any resources and established any
invariants needed, and the destructor has not yet started and possibly
(probably) released resources and broken invariants.
- David.Thompson1 at worldnet.att.net
.
- References:
- Prev by Date: Re: calling fortran from c++
- Next by Date: Re: Lowercase
- Previous by thread: Re: Scope
- Next by thread: templates - generic programming
- Index(es):
Relevant Pages
|