yes the visibility goes from top to bottom.
You can declare locals with no value.
local func -- Forward declaration. `local func = nil` is the same.
local function func2() -- Suppose you can't move this function lower.
return func() -- used here
end
function func() -- defined here
return 1
end
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…