[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Why OP_CLOSE has been removed?
- From: Marco Bambini <marco@...>
- Date: Fri, 20 Jan 2017 09:29:05 +0100
I was studying the "Closures in Lua" PDF document published some time ago.
The document explains the usage of the CLOSE opcode (OP_CLOSE) which has been removed in recents Lua versions.
I wondering why this opcode has been removed.
It is now always used implicitly? (I guess in RETURN and JUMP but what about when a var goes out scope in a block?)
I think that this choice could add a lot of overhead, am I wrong?
Thanks a lot for the explanation.