[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lazyness abtract (proposal for next Lua version)
- From: Tom N Harris <telliamed@...>
- Date: Fri, 19 Dec 2014 20:47:54 -0500
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>