lua-users home
lua-l archive

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


Cosmin Apreutesei <cosmin.apreutesei@gmail.com> writes:
> function evaluate_in(env,f,...)
>   in env do
>     return f(...)
>   end
> end
>
> Maybe i didn't get the use case cuz this seems too trivial.

That's not how "in ENV" works though -- its effect is purely lexical, so
won't apply to the body of f in this case.

-Miles

-- 
Faith, n. Belief without evidence in what is told by one who speaks without
knowledge, of things without parallel.