Roman Tsisyk
2014-09-03 17:22:27 UTC
Hi Mike,
Do you have any plans to support `__gc' metamethod for tables in
LuaJIT 2.0.x / 2.1.x?
I remember that you scheduled this feature to 2.1.x series.
Currently it doesn't work on latest v2.1 branch, even with enabled LUA52COMPAT.
I found that it is possible to add some cdata structure to Lua table
and set finalizer on it using ffi.gc(). However, this scheme looks
overcomplicated for such simple task.
Are there any alternatives?
Thanks!
Do you have any plans to support `__gc' metamethod for tables in
LuaJIT 2.0.x / 2.1.x?
I remember that you scheduled this feature to 2.1.x series.
Currently it doesn't work on latest v2.1 branch, even with enabled LUA52COMPAT.
I found that it is possible to add some cdata structure to Lua table
and set finalizer on it using ffi.gc(). However, this scheme looks
overcomplicated for such simple task.
Are there any alternatives?
Thanks!
--
WBR,
Roman Tsisyk <roman-***@public.gmane.org>
http://tarantool.org/ - an efficient in-memory data store and a Lua
application server
http://try.tarantool.org/ - try your Lua code **online**
WBR,
Roman Tsisyk <roman-***@public.gmane.org>
http://tarantool.org/ - an efficient in-memory data store and a Lua
application server
http://try.tarantool.org/ - try your Lua code **online**