In Lua, is there a difference between local functions declared with and without the “local” keyword?
snippet in lua
In Lua, is there a difference between local functions declared with and without the “local” keyword?
user5501
function f()
function a() end
local function b() end
end
print(a, b) -- nil, nil
f()
print(a, b) -- function: 0xdeadbeef, nil