On May 12, 2020, at 4:49 PM, Andrea <andrea.l.vitali@gmail.com> wrote:
thank you for your example - and just to be clear: I am perfectly fine with "local by default" and would not change anything in Luamy comment for your example below is that there is still some asymmetry:the "global" in read is optional, nothing changes if omitted;on the opposite the "global" in write is mandatory, does not work as intended if omitted
function read()
global x
return x
end
function write()
global x
x = 1
end
_______________________________________________ lua-l mailing list -- lua-l@lists.lua.org To unsubscribe send an email to lua-l-leave@lists.lua.org