lua-users home
lua-l archive

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


I guess we can finish the discution about diferent definitions for lexical
scoping. Lua 4.1 will meet all of them. We have just finished a first
implementation of unrestricted lexical scoping.

Among other niceties, it will be very easy to declare recursive local
functions:

  local fact
  function fact (n) ... end

Any `fact' inside the function body will bind to the local `fact', and will
use the current value at the time of the invocation (not a previously frozen
value).

-- Roberto