[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua registry, environment, and threads.
- From: Leo Razoumov <slonik.az@...>
- Date: Sun, 10 Jan 2010 18:06:40 -0500
On 2010-01-10, Cosmin Apreutesei <cosmin.apreutesei@gmail.com> wrote:
>
> How about a built-in function ecall(env,f,...) ? And of course,
> ecall() would NOT be implemented via setfenv(), so you could still
> call f() properly from another thread while inside ecall().
>
I like this approach. It would allow to load chunk once and evaluate
it multiple times with different environments. Very useful trick in
multi pass data analysis.
--Leo--
- References:
- Lua registry, environment, and threads., Christian Tellefsen
- Re: Lua registry, environment, and threads., Christian Tellefsen
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy
- Re: Lua registry, environment, and threads., Mark Hamburg
- Re: Lua registry, environment, and threads., Patrick Donnelly
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy
- Re: Lua registry, environment, and threads., Alexander Gladysh
- Re: Lua registry, environment, and threads., Cosmin Apreutesei
- Re: Lua registry, environment, and threads., Matthew Wild
- Re: Lua registry, environment, and threads., Cosmin Apreutesei