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
> scoping. Lua 4.1 will meet all of them. We have just finished a first
> implementation of unrestricted lexical scoping.

I was going to post a defence of up-values, but I guess it is too late. Oh,

Out of curiosity, do you plan to do away with upvalues altogether, or offer
both alternatives?

If the former, how is the following handled:

for k, v in tab do
  actors[k] = function(x) act_on(v, x) end

I'd be quite content if I can get the existing behaviour by specifying
act_on(%v, x)