lua-users home
lua-l archive

Re: should we add a name for global std-function.

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


starwing <weasley.wx@gmail.com> writes:
> then, how could we add all (builtin) function into a new _ENV? there are
> some practice way to do it?
hmm, 
 do
 local _ENV = setmetatable ({}, {__index = _G})
 ...
 end
or something?
-miles
-- 
The secret to creativity is knowing how to hide your sources.
 --Albert Einstein

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