lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Reuben Thomas <> 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.