internal static void MetaNewIndex(LuaValue table, LuaValue key, LuaValue value) { LuaValue h = GetHandler(table, "__newindex"); if (h != null) { if (h.LuaType == "function") { h.Call(table, key, value); return; } else { h.NewIndex(key, value); return; } } throw new NotSupportedException(); }