Módulo:No globals

Dendi Güiquipeya
warning Atención:No editar. Un robot se encarga de dar mantenimiento a esta página. Cualesquier modificaciones deben efectuarse en mediawiki.org.
Ayudar con la traducción de esta página.

local mt = getmetatable(_G) or {}
function mt.__index (t, k)
	if k ~= 'arg' then
		error('Trató de leer nil global ' .. tostring(k), 2)
	end
	return nil
end
function mt.__newindex(t, k, v)
	if k ~= 'arg' then
		--error('Trató de escribir global ' .. tostring(k), 2)
	end
	rawset(t, k, v)
end
setmetatable(_G, mt)