mkottman/lqt — Issue #14: Don't use Globals
Author: daurnimator
Created: 2011-11-13 12:37:46+00:00
State: open

Well behaved lua modules should not set globals;
Please fix lqt so it no longer does.

For compatability, older apps can:

local function shallowcopy ( dst , ... )
for i , src in ipairs({...}) do
for k , v in pairs ( src ) do
dst [ k ] = v
end
end
return dst
end

local Qt = shallowcopy ( {} , require"qtcore" , require"qtgui" , )
setmetatable(_G,{__index=Qt} )