From 60aa01d8f7f3be01c71b12972d42c915ae1d045e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 16 May 2003 15:59:08 -0300 Subject: fully-weak tables are more efficient --- lbaselib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 7d559585..4c761bbf 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.129 2003/03/19 21:14:34 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.130 2003/04/03 13:35:34 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -656,8 +656,8 @@ static void base_open (lua_State *L) { lua_pushvalue(L, -1); /* `w' will be its own metatable */ lua_setmetatable(L, -2); lua_pushliteral(L, "__mode"); - lua_pushliteral(L, "k"); - lua_rawset(L, -3); /* metatable(w).__mode = "k" */ + lua_pushliteral(L, "kv"); + lua_rawset(L, -3); /* metatable(w).__mode = "kv" */ lua_pushcclosure(L, luaB_newproxy, 1); lua_rawset(L, -3); /* set global `newproxy' */ lua_rawset(L, -1); /* set global _G */ -- cgit v1.2.3-55-g6feb