Kopumbwa na makambo oyo ezali na kati

Module:No globals

Útá Wikipedia.
Bozongeli lokola ya 3 sɛtɛ́mbɛ 2015 à 23:45 na CFCF (ntembe | bíteni ya mosálá) (Page créée avec « local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('Tried to read nil global ' .. tostring(k), 2) end return nil end function mt.__... »)
(mbó.) ← Lizóngeli lilekí | Lizóngeli na mosálá (mbó.) | Lizóngeli lilandí → (mbó.)

La documentation pour ce module peut être créée à Module:No globals/doc

local mt = getmetatable(_G) or {}
function mt.__index (t, k)
	if k ~= 'arg' then
		error('Tried to read nil global ' .. tostring(k), 2)
	end
	return nil
end
function mt.__newindex(t, k, v)
	if k ~= 'arg' then
		error('Tried to write global ' .. tostring(k), 2)
	end
	rawset(t, k, v)
end
setmetatable(_G, mt)