Re: Question about variable scope conflict
- From: santosh <santosh.k83@xxxxxxxxx>
- Date: Sat, 01 Dec 2007 00:07:37 +0530
David Mathog wrote:
santosh wrote:
Use the -Wshadow switch for gcc.
I never would have thought to call it that.
Any idea where the term "shadow variable" in this context originated?
It pretty common to informally say that an object in a particular
scope "shadows" an identically named object in an outer scope. So I
guess the name for that gcc diagnostics switch was taken from this.
<snip>
.
- References:
- Question about variable scope conflict
- From: David Mathog
- Re: Question about variable scope conflict
- From: santosh
- Re: Question about variable scope conflict
- From: David Mathog
- Question about variable scope conflict
- Prev by Date: Re: Reading a table
- Next by Date: Re: Question about variable scope conflict
- Previous by thread: Re: Question about variable scope conflict
- Next by thread: Re: Question about variable scope conflict
- Index(es):