lua-users home
lua-l archive

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


On Mon, May 30, 2016 at 10:14 PM, Jonne Ransijn <yoyoyonny@gmail.com> wrote:
> function try(func)
> -- ...
> end

With try-catch-finally as implemented in, say, C++, Java or
JavaScript, the finally block is run even if you return from the other
blocks or rethrow from the catch block. Lua doesn't allow that (not
that I miss it, mind you)...
—Pierre-Yves