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 d022074ae6
Update Lua 5.4.3 defer patch - minor change to remove some leftover stuff
3 years ago
..
README.md Lua 5.4.3 defer statement patch 3 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
defer_statement_patch_for_Lua_5_4_3.patch Update Lua 5.4.3 defer patch - minor change to remove some leftover stuff 3 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 versions prior to 5.4.3 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 think this is fixed in Lua 5.4.3.

The original patch for 5.4 is applicable to versions prior to 5.4.3. The 5.4.3 version has a new approach to the implementation of toclose values, hence a new patch had to be created.