From f76b4690f034894720cc11d6b02dfc14b415c1b5 Mon Sep 17 00:00:00 2001 From: Dibyendu Majumdar Date: Fri, 17 Jul 2020 13:49:40 +0100 Subject: [PATCH] Initial patch to implement 'defer' statement in Lua 5.4 --- patches/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 patches/README.md diff --git a/patches/README.md b/patches/README.md new file mode 100644 index 0000000..61dbc43 --- /dev/null +++ b/patches/README.md @@ -0,0 +1,6 @@ +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. \ No newline at end of file