lua-users home
lua-l archive

[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