lua-users home
lua-l archive

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


> How do I create the function closure with the value v has when the
> closure is created?

for k,v in t do local _v=v; f=function() print(_v) end end

-taj