Comment by ptx Comment by ptx 9 hours ago 1 reply Copy Link View on Hacker News Lua's variables being global by default seems somewhat error-prone.
Copy Link gucci-on-fleek 9 hours ago Collapse Comment - Agreed, but the recently-released v5.5 fixes that [0], and it's fairly easy to fix this in older versions with the following snippet setmetatable(_G, { __newindex = false, __index = false }) [0]: https://www.lua.org/manual/5.5/manual.html#2.2 Reply View | 0 replies
Agreed, but the recently-released v5.5 fixes that [0], and it's fairly easy to fix this in older versions with the following snippet
[0]: https://www.lua.org/manual/5.5/manual.html#2.2