lua-users home
lua-l archive

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


On Fri, Dec 10, 2010 at 04:56, Miles Bader <miles@gnu.org> wrote:
  do
     local _ENV = setmetatable ({}, {__index = _G})
     ...
  end
Almost:

    do
        local _ENV = setmetatable ({}, {__index = _ENV})
        ...
    end

-- Pierre-Yves