lua-users home
lua-l archive

Re: Deprecating setfenv()

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


> But not _all things_. I'm thinking of Leo's use-case, where he has one
> function which he wants to evaluate efficiently for a lot of different
> contexts.
Something like:
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.

AltStyle によって変換されたページ (->オリジナル) /