"ഘടകം:No globals" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

abhiprayavedi.org സംരംഭത്തിൽ നിന്ന്
Jump to navigation Jump to search
(ചെ.) (ഒരു പതിപ്പ് ഇറക്കുമതി ചെയ്തു)
 
(വ്യത്യാസം ഇല്ല)

03:51, 5 മേയ് 2016-നു നിലവിലുള്ള രൂപം

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)

"http://abhiprayavedi.org/index.php?title=ഘടകം:No_globals&oldid=118" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്