can be used to store Lua objects (like constructors) in C structures of Mewa instead of storing them in hashtables.
This can be especially useful in the case of set_instance.
= luaL_ref( ls, LUA_REGISTRYINDEX);
and
lua_rawgeti( ls, LUA_REGISTRYINDEX, );
instead of Lua table with custom counters as keys for object references stored as integers in the C++ structures of Mewa.
Check if int r = luaL_ref(L, LUA_REGISTRYINDEX);
can be used to store Lua objects (like constructors) in C structures of Mewa instead of storing them in hashtables. This can be especially useful in the case of set_instance.