You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi/patches
Dibyendu Majumdar f76b4690f0
Initial patch to implement 'defer' statement in Lua 5.4
4 years ago
..
README.md Initial patch to implement 'defer' statement in Lua 5.4 4 years ago
defer_statement_for_Lua_5_3.patch Lua 5.3 patch that implements 'defer' statement 4 years ago
defer_statement_for_Lua_5_4.patch Initial patch to implement 'defer' statement in Lua 5.4 4 years ago

README.md

These patches are for Lua 5.3 and 5.4.

The 'defer' patch adds the defer statement to Lua.

Note that in Lua 5.4 a deferred closure may be called more than once just as the close method of a to-be-closed variable may be called more than once, when exiting the scope. I am checking why Lua 5.4 behaves this way.