[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (beta) now available
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Tue, 08 Oct 2019 18:28:05 -0300
> If you think about Lua 6, one goal will be to support real exceptions
> and exception handlers in the language (i.e. try..catch, and possibly
> finally using the new "toclose" semantics supported in the VM).
As far as I know, the reason why Lua uses pcall instead of try-catch
blocks has more to do with the Lua-C API than it has to do with types.
The pcall function can be easily exposed to C, but there is no obvious
way to do the same with try-catch blocks.
I believe this is also the main motivation for to-be-closed variables
instead of try-finally blocks.
- References:
- [ANN] Lua 5.4.0 (beta) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.4.0 (beta) now available, Phil Leblanc
- Re: [ANN] Lua 5.4.0 (beta) now available, Tomás Guisasola
- Re: [ANN] Lua 5.4.0 (beta) now available, Jonathan Goble
- Re: [ANN] Lua 5.4.0 (beta) now available, Tomás Guisasola
- Re: [ANN] Lua 5.4.0 (beta) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 (beta) now available, Petri Häkkinen
- Re: [ANN] Lua 5.4.0 (beta) now available, Egor Skriptunoff
- Re: [ANN] Lua 5.4.0 (beta) now available, Russell Haley
- Re: [ANN] Lua 5.4.0 (beta) now available, William Ahern
- Re: [ANN] Lua 5.4.0 (beta) now available, Philippe Verdy