lua-users home
lua-l archive

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

"Jay Carlson" <> writes:

> C looks lexically scoped to me.  There aren't nested functions/functions as
> values.  What am I missing?

C's lack of nested functions is exactly why C is not lexically scoped.
A variable reference refers to either a local or a global value, a
popular choice for language implementors because of its ease of
implementation.  I'm sure you know that C can be compiled into very
efficiently code.