lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


very sorry i am not able to understand properly please give me with a text below example

if service.click({
{"OK>100",
}
})
return true
end

return true

On Thu, Mar 2, 2023, 2:23 PM Sean Conner <sean@conman.org> wrote:

  Why not chime in with this?

        local function foo()
          ...
          return foo()
        end

Because Lua does tail-call optimization, this won't blow the stack.

  -spc