lua-users home
lua-l archive

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


On Sun, 6 Oct 2019 at 01:52, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
> BTW syntax of defer could be simplified by omitting the 'function()'.
>

This is now committed. So we can simply write:

function x()
   defer print('exited') end
end

Credit for this idea goes to Daurnimator:
http://lua-users.org/lists/lua-l/2019-06/msg00280.html

> The JIT backends are not yet fully updated.
>
> Anyway, if anyone wants to try out, the branch is 'defer'.
>
> https://github.com/dibyendumajumdar/ravi/tree/defer
>