உள்ளடக்கத்துக்குச் செல்

Module:No globals

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.
en>Xaosflux பயனரால் செய்யப்பட்ட 02:29, 13 மார்ச் 2019 அன்றிருந்தவாரான திருத்தம் (Changed protection level for "Module:No globals": Used in interface MediaWiki:Protectedpagetext ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
warning எச்சரிக்கைDo not edit. This page is maintained by an automated tool. All edits should be done at mediawiki.org. (translate this warning)
Please help translate this page.

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)
"https://ta.wikipedia.org/w/index.php?title=Module:No_globals&oldid=2680315" இலிருந்து மீள்விக்கப்பட்டது