From -420356793639964890
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,fb1a92fa405c930c
X-Google-Attributes: gidf78e5,public
From: James Kuyper <kuyper@wizard.net>
Subject: Re: nested functions
Date: 1999/06/23
Message-ID: <3766FDCB.EF02C610@wizard.net>#1/1
X-Deja-AN: 492861361
Content-Transfer-Encoding: 7bit
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
References: <7jrqf5$op5$1@nnrp1.deja.com> <7jrv0r$dfq$1@engnews1.eng.sun.com> <081650426190c69CPIMSSMTPU07@email.msn.com> <7k0b01$nod$1@panix.com> <7k3fr2$7el@abyss.West.Sun.COM>
X-Original-Date: Tue, 15 Jun 1999 21:28:43 -0400
Content-Type: text/plain; charset=us-ascii
Organization: Not Enough
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUAN3CdsqwEuYhIxRhxAQEG0AH/Qhe77pWPYnNukjTNL9bI9YHz9Mvaurjg +8myNIo5vHaZwWzij9tV4Rhl5rmFZVOLwjMH8ErQRmq7+35PQP9KAA== =zWv8
Mime-Version: 1.0
Newsgroups: comp.std.c++

Stanley Friesen [Contractor] wrote:
> 
> In article <7k0b01$nod$1@panix.com>,
> Greg Comeau <comeau@comeaucomputing.com> wrote:
> >scope is a syntactic thing.  It doesn't apply to a running program
> >in the same sense.
> 
> True - but there is this little rule that variables of automatic *duration*
> are destroyed on exit from their scope.

Not on exit from their scope, but on exit from the block they are
defined in. You can have one without the other by executing a
subroutine; the block hasn't exited yet, but while the subroutine is
executing, the variable isn't in scope.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



