Module:No globals: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
don't bother saving old __index or __newindex |
imported>Sukanthi சி 9 திருத்தங்கள் இறக்குமதி செய்யப்பட்டன |
||
| (8 பயனர்களால் செய்யப்பட்ட 12 இடைப்பட்ட திருத்தங்கள் காட்டப்படவில்லை.) | |||
வரிசை 1:
local mt = getmetatable(_G) or {}
function mt.__index (t, k)
if
error('Tried to read nil global ' .. tostring(k), 2)
end
வரிசை 7:
end
function mt.__newindex(t, k, v)
if
error('Tried to write global ' .. tostring(k), 2)
end
| |||