സഹായം | Reading Problems? Click here |
കുഞ്ഞെഴുത്തുകൾ ഹെൽപ്ഡെസ്ക്ക് പരിശീലനം മാതൃകാപേജ് ലിറ്റിൽ കൈറ്റ്സ് ജില്ലാ ക്യാമ്പ് |
ഘടകം:No globals
ഈ ഘടകത്തിന്റെ വിവരണം ഘടകം:No globals/വിവരണം എന്ന താളിൽ നിർമ്മിക്കാവുന്നതാണ്
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)