lua-users home
lua-l archive

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

On 2010-01-10, Cosmin Apreutesei <> 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.