|
local helper helper = function() print (helper) end
this code pattern is useful for recursive functions (calling helper inside helper) and i use it all the time.
You can also write local function helper() print(helper) endThis is sugar for what you wrote above, so helper will be an upvalue (to the function itself) in the function body.
-- Wim