[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Making Lua lexically scoped (was: Re: Proper tail recursion)
- From: ramsdell@... (John D. Ramsdell)
- Date: 30 Jul 2001 10:30:05 -0400
Reuben Thomas <email@example.com> writes:
> As I understand it, "lexical" scoping is a term used in opposition to
> "dynamic" scoping, ....
No, static scoping means that the variable binding to which every
variable reference refers can be determined by a static analysis of
the program. Dynamic scoping is the opposite of static scoping. A
language can be statically scoped, not lexically scoped, and not
dynamically scoped. An example is C and Fortran.