Note that the variable a in that case is global. You might want to transform it into functions.a or local if you don’t want any access to it from outside the module
Then test function is local because its inside a table with local, but the variable is global because is inside a function without local keyword, but this fuction is local.
in stack overflow said me that everything inside a local table is local.
then, in a module, there is no need to use local keyword?
local module={}
function module.a() -- is local?
variable="a" --is local??
end
module.b="b" -- is local??
function module.c()
tablet={} -- is local??
end
local module={}
function module.a() -- is local? yes, module is local
variable="a" --is local?? no
end
module.b="b" -- is local?? yes, module is local
function module.c()
tablet={} -- is local?? -no
end