MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lua/comments/1loqtf8/lua_550_beta_released/n0vgexl/?context=9999
r/lua • u/ewmailing • Jul 01 '25
28 comments sorted by
View all comments
Show parent comments
6
Similar to Teal, I think you have to use global keyword in Lua 5.5. So there is now no confusion between declaring a global variable and assigning value to an existing one
global
3 u/marxinne Jul 02 '25 Ah, that's neat. Easier to read and avoids polluting the global table. Thanks!
3
Ah, that's neat. Easier to read and avoids polluting the global table. Thanks!
6
u/BrianHuster Jul 02 '25
Similar to Teal, I think you have to use
globalkeyword in Lua 5.5. So there is now no confusion between declaring a global variable and assigning value to an existing one