lua-users home
lua-l archive

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


On Sun, 4 Oct 2009 10:43:10 -0500
Phoenix Sol <phoenix@burninglabs.com> wrote:
> 
> #!/usr/bin/lua
> ...
> while not succeed do try() end

function try(at_first)
  at_first() if not succeed then
    return try(again)
  end
end

Better?

-- tom
telliamed@whoopdedo.org