[ANN] Defer statement patch for Lua 5.4

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Defer statement patch for Lua 5.4

Dibyendu Majumdar
Hi,

I am pleased to announce an initial version of the 'defer' statement
patch of Lua 5.4 is available at
https://github.com/dibyendumajumdar/ravi/blob/master/patches/defer_statement_for_Lua_5_4.patch.

Thanks and Regards
Dibyendu
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Defer statement patch for Lua 5.4

Sergey Kovalev
"...Lua does not distinguish between stack errors and other errors when
calling the closing method, so any error while running it will call it
again..." ( http://lua-users.org/lists/lua-l/2020-07/msg00225.html )

defer and <close> should not be used until "called twice" will be
fixed. This behaviour is unacceptable.

сб, 18 июл. 2020 г. в 02:41, Dibyendu Majumdar <[hidden email]>:
>
> Hi,
>
> I am pleased to announce an initial version of the 'defer' statement
> patch of Lua 5.4 is available at
> https://github.com/dibyendumajumdar/ravi/blob/master/patches/defer_statement_for_Lua_5_4.patch.
>
> Thanks and Regards
> Dibyendu
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Defer statement patch for Lua 5.4

Dibyendu Majumdar
On Mon, 20 Jul 2020 at 11:11, Sergey Kovalev <[hidden email]> wrote:
>
> "...Lua does not distinguish between stack errors and other errors when
> calling the closing method, so any error while running it will call it
> again..." ( http://lua-users.org/lists/lua-l/2020-07/msg00225.html )
>
> defer and <close> should not be used until "called twice" will be
> fixed. This behaviour is unacceptable.

Hi, I have not yet been able to pinpoint exactly which piece of code
in 5.4 is doing this ... in my 'defer' patch for 5.3 this does not
happen.
Maybe there is some technical reason why this cannot be avoided, I do
not know yet.

> сб, 18 июл. 2020 г. в 02:41, Dibyendu Majumdar <[hidden email]>:
> > I am pleased to announce an initial version of the 'defer' statement
> > patch of Lua 5.4 is available at
> > https://github.com/dibyendumajumdar/ravi/blob/master/patches/defer_statement_for_Lua_5_4.patch.