... Or just use different names for each variable...
- Michael
On Aug 11, 2009, at 9:28 AM, "Ian Lance Taylor" <iant@xxxxxxxxxx> wrote:
Todd <todd.freed@xxxxxxxxx> writes:
My question is, is it possible, from within the inner scope, to refer
to the variables and labels defined in the outer scope (whose names
have been overridden)
If the name of the variable has been overridden, then you can not
refer
to the object directly. This is the same case as
int i;
{
int i;
i = 1; /* Refers to inner 'i', not outer one. The outer 'i' is
hidden. */
}
Of course you could use a pointer, pass a parameter to the inner
function, etc.
Ian