> So, now, from Lua's side, how to retrieve metatable's name ???? (in my case, "SelTimedWindowCollection") If the metatable was created with luaL_newmetatable in Lua 5.3+, then use luaL_getmetafield(L, arg, "__name").