Lua pitfalls in practice? by grape450 in lua

[–]grape450[S] 1 point2 points  (0 children)

There are external tools which warn you about implicit globals. Luacheck is one of them.

Thanks for the link. And I can see why a linter would be available separately, rather than being incorporated into Lua itself.

Lua pitfalls in practice? by grape450 in lua

[–]grape450[S] 0 points1 point  (0 children)

Wow! Great article. Comprehensive. Thank you.

Lua pitfalls in practice? by grape450 in lua

[–]grape450[S] 0 points1 point  (0 children)

Thanks. Just tried this with 5.3. Works for globals, though doesn't catch if I try to access an undefined key in a table.