lua-users home
lua-l archive

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


On Friday, December 19, 2014 05:54:00 PM Javier Guerra Giraldez wrote:
> On Fri, Dec 19, 2014 at 10:36 AM, Volodymyr Bezobiuk <dedoogun@gmail.com> 
wrote:
> 
> function new_lazy_t()
> end
> 
> you create a 'lazy table', store functions there, and when you read
> them they're evaluated and memoized:

And start a function with 

    local _ENV = new_lazy_t()

You get lazy-by-default variables.

-- 
tom <telliamed@whoopdedo.org>