[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RAII finalizer solution for Lua 5.2
- From: Tom N Harris <telliamed@...>
- Date: Mon, 02 May 2011 20:56:39 -0400
A finalization method that doesn't rely on setfenv. So it works in Lua
5.2 and can now be used in coroutines as well. This can also be
implemented in C using a closure with the finalizer stack as an upvalue.
No patches are necessary in either case.