New year's gift - a patch for Lua 5.3.5 implementing 'defer' statement as in Ravi

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

New year's gift - a patch for Lua 5.3.5 implementing 'defer' statement as in Ravi

Dibyendu Majumdar
Hi,

I recently created a release for Ravi that has an implementation of
the 'defer' statement. Please see
https://github.com/dibyendumajumdar/ravi/releases for details.

I am pleased to attach a patch for Lua 5.3.5 that adds the 'defer'
statement. Minimally tested, but happy to receive any reports of
issues. Of course many thanks to Roberto for his work on Lua 5.4, as
this patch is based upon that work.

Happy new year all!

Regards
Dibyendu

Implement_'defer'_statement_for_Lua_5_3_5.patch (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New year's gift - a patch for Lua 5.3.5 implementing 'defer' statement as in Ravi

bil til
Thank you for this input, this defer function is a nice idea, I did not know
this before... also a nice idea for c++ software... .

But doing this so "deep down" in the lua c - isn't this a bit "cracking a
walnut by a sledge-hammer"?
(Could this not also be done quite easily with some nice and simple meta
functions?)



--
Sent from: http://lua.2524044.n2.nabble.com/Lua-l-f2524044.html