[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (alpha) now available
- From: Patrick Donnelly <batrick@...>
- Date: Fri, 14 Jun 2019 09:43:29 -0700
On Thu, Jun 13, 2019 at 6:36 AM Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> Lua 5.4.0 (alpha) has been frozen and is now available for testing at
> http://www.lua.org/work/lua-5.4.0-alpha.tar.gz
Great release! A few comments (some of which may already have been
beaten to death in other threads, sorry if I'm rebooting them):
- lua_resetthread is hard to find if you start by looking at
coroutine.close. Can we rename it lua_closethread or rename
coroutine.close to coroutine.reset?
- Maybe it's time to have a coroutine metatable? __index = coroutine,
__close = coroutine.close ?
- I think it's really important that "local <toclose> foo, err =
bar()" be allowed. Otherwise plugging this into code that uses
multireturns for error passing will have a lot of difficulty adopting
<toclose>. (I'm thinking of Nmap's NSE.)
--
Patrick Donnelly