[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: AW: AW: AW: non-locals are only sometimes global?
- From: Mark Hamburg <mark@...>
- Date: Wed, 21 Jul 2010 07:33:46 -0700
The loop and the function parameters serve as declarations for the variables. Note that a local declaration outside the scope of those constructs is a declaration of a different variables. Global-by-default only applies to undeclared variables. The "local" statement only exists to provide declarations for variables that can't be readily defined via other constructs like loops and functions.
Mark
- References:
- non-locals are only sometimes global?, Warlich, Christof
- Re: non-locals are only sometimes global?, steve donovan
- AW: non-locals are only sometimes global?, Warlich, Christof
- Re: AW: non-locals are only sometimes global?, Peter Odding
- AW: AW: non-locals are only sometimes global?, Warlich, Christof
- Re: AW: AW: non-locals are only sometimes global?, Peter Odding
- AW: AW: AW: non-locals are only sometimes global?, Warlich, Christof
- Re: AW: AW: non-locals are only sometimes global?, Matthew Wild
- AW: AW: AW: non-locals are only sometimes global?, Warlich, Christof
- Re: AW: AW: AW: non-locals are only sometimes global?, David Kastrup
- AW: AW: AW: AW: non-locals are only sometimes global?, Warlich, Christof
- Re: AW: AW: AW: non-locals are only sometimes global?, Javier Guerra Giraldez