No Globals

This module causes an error if any nil global is read or if any global is written to, with the exception of arg.

warning 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.

To use, add require('Module:No globals') to the top of the module using it. The arg variable is excluded because it is necessary for Scribunto's require function to work properly. (See the Scribunto source code here.)


local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then -- perf optimization here and below: do not load Module:TNT unless there is an error error(require('Module:TNT').format('I18n/No globals', 'err-read', tostring(k)), 2) end return nil end function mt.__newindex(t, k, v) if k ~= 'arg' then error(require('Module:TNT').format('I18n/No globals', 'err-write', tostring(k)), 2) end rawset(t, k, v) end setmetatable(_G, mt) 

Tags:

mw:Extension:Scribunto/Lua reference manual

🔥 Trending searches on Wiki ਪੰਜਾਬੀ:

ਸਿੱਖ ਧਰਮ26 ਅਗਸਤਨਜਮ ਹੁਸੈਨ ਸੱਯਦਸੀ.ਐਸ.ਐਸਜੋਤਿਸ਼ਅੰਕੀ ਵਿਸ਼ਲੇਸ਼ਣਜ਼ੈਨ ਮਲਿਕਗੋਇੰਦਵਾਲ ਸਾਹਿਬਸ਼ੀਸ਼ ਮਹਿਲ, ਪਟਿਆਲਾਸੰਤ ਸਿੰਘ ਸੇਖੋਂਭਾਰਤ ਸਰਕਾਰਬੁੱਲ੍ਹੇ ਸ਼ਾਹਕਿਰਿਆਸੱਭਿਆਚਾਰ ਅਤੇ ਸਾਹਿਤਗੁਰੂ ਹਰਿਕ੍ਰਿਸ਼ਨਨੋਬਲ ਇਨਾਮ ਜੇਤੂ ਔਰਤਾਂ ਦੀ ਸੂਚੀਕੰਪਿਊਟਰਮਾਨਸਿਕ ਸਿਹਤ2014 ਆਈਸੀਸੀ ਵਿਸ਼ਵ ਟੀ20ਪੰਜਾਬੀ ਅਖਾਣਗੁਰੂ ਰਾਮਦਾਸਹਰਿਮੰਦਰ ਸਾਹਿਬਕੀਰਤਨ ਸੋਹਿਲਾਵਲਾਦੀਮੀਰ ਪੁਤਿਨਡਾ. ਦੀਵਾਨ ਸਿੰਘਵਾਰਪੰਜ ਪਿਆਰੇਭਗਤੀ ਲਹਿਰਪੰਜਾਬੀ ਵਿਆਕਰਨਮੱਕੀਡਾ. ਸੁਰਜੀਤ ਸਿੰਘਸੁਨੀਲ ਛੇਤਰੀਪੰਜਾਬ ਦੇ ਮੇੇਲੇ੧ ਦਸੰਬਰਬਿਰਤਾਂਤਮੋਬਾਈਲ ਫ਼ੋਨਹਾਰੂਕੀ ਮੁਰਾਕਾਮੀਭਾਸ਼ਾ ਵਿਗਿਆਨਸਨਾ ਜਾਵੇਦਰਾਜਾ ਰਾਮਮੋਹਨ ਰਾਏਰਸ (ਕਾਵਿ ਸ਼ਾਸਤਰ)ਗੁਰੂ ਰਾਮਦਾਸ ਜੀ ਦੀ ਰਚਨਾ, ਕਲਾ ਤੇ ਵਿਚਾਰਧਾਰਾਨਿੱਜਵਾਚਕ ਪੜਨਾਂਵਭੁਚਾਲਧਾਂਦਰਾਚੱਪੜ ਚਿੜੀਗੁਰਮਤਿ ਕਾਵਿ ਦਾ ਇਤਿਹਾਸਸਿੱਧੂ ਮੂਸੇ ਵਾਲਾਪੁੰਨ ਦਾ ਵਿਆਹਏ. ਪੀ. ਜੇ. ਅਬਦੁਲ ਕਲਾਮਭਾਈ ਤਾਰੂ ਸਿੰਘਐਚਆਈਵੀਮਨੀਕਰਣ ਸਾਹਿਬਮਨੁੱਖੀ ਪਾਚਣ ਪ੍ਰਣਾਲੀਫ਼ਾਦੁਤਸਭਾਰਤ ਦਾ ਸੰਵਿਧਾਨਸੰਯੁਕਤ ਰਾਜ ਅਮਰੀਕਾ ਵਿੱਚ ਅਮਰੀਕੀ ਮੂਲ - ਨਿਵਾਸੀਜਨਮ ਸੰਬੰਧੀ ਰੀਤੀ ਰਿਵਾਜਪੰਜਾਬੀ ਵਾਰ ਕਾਵਿ ਦਾ ਇਤਿਹਾਸਨਾਰੀਵਾਦਰਸ਼ੀਦ ਜਹਾਂਮੱਧਕਾਲੀਨ ਪੰਜਾਬੀ ਸਾਹਿਤਉਸਮਾਨੀ ਸਾਮਰਾਜਜੰਗਨਾਮਾ ਸ਼ਾਹ ਮੁਹੰਮਦਸਿੱਖਿਆਵਿਧੀ ਵਿਗਿਆਨਖੂਹਨੌਰੋਜ਼ਕਨ੍ਹੱਈਆ ਮਿਸਲਫੁੱਟਬਾਲ🡆 More