3 ms·
You might want to look into strict.lua for avoiding unwanted globals: http://metalua.luaforge.net/src/lib/strict.lua.html http://metalua.luaforge.net/src/lib/st
by elisee 14y ago
You might want to look into strict.lua for avoiding unwanted globals: http://metalua.luaforge.net/src/lib/strict.lua.html http://metalua.luaforge.net/src/lib/strict.lua.html
It's a little script that you can add to your Lua project and will check for usage of globals in functions without prior assignation in the global scope. Quite nifty.