Are keys set in the registry of a temporary state that's accessed in a module int luaopen_foo(lua_State*)
adopted in the registry of the calling state?
For example, let's say we have this module:
int luaopen_foo(lua_State* state) {
lua_pushstring("foo");
lua_pushnumber(10);
lua_settable(state, LUA_REGISTRYINDEX);
}
And this module is required by lua code:
require "foo"
Is the key foo
in the registry from the state state
adopted into the registry from the calling state?