lua-users home
lua-l archive

Re: Deprecating setfenv()

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


> 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.
In the code above, the "in env do" block is useless because the block
contains *no* global names that need to be resolved. (f is a local var in
evaluate_in.)

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