[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Try-catch and try-finally
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 1 Jun 2016 15:20:37 +0200
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