aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-16 15:59:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-16 15:59:08 -0300
commit60aa01d8f7f3be01c71b12972d42c915ae1d045e (patch)
treed703654bfd1d113d2a4fbae9e078e364362ac191 /lbaselib.c
parentecf5730c0cc2dde4006a0dded0cf3dd241636cba (diff)
downloadlua-60aa01d8f7f3be01c71b12972d42c915ae1d045e.tar.gz
lua-60aa01d8f7f3be01c71b12972d42c915ae1d045e.tar.bz2
lua-60aa01d8f7f3be01c71b12972d42c915ae1d045e.zip
fully-weak tables are more efficient
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 7d559585..4c761bbf 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.129 2003/03/19 21:14:34 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.130 2003/04/03 13:35:34 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -656,8 +656,8 @@ static void base_open (lua_State *L) {
656 lua_pushvalue(L, -1); /* `w' will be its own metatable */ 656 lua_pushvalue(L, -1); /* `w' will be its own metatable */
657 lua_setmetatable(L, -2); 657 lua_setmetatable(L, -2);
658 lua_pushliteral(L, "__mode"); 658 lua_pushliteral(L, "__mode");
659 lua_pushliteral(L, "k"); 659 lua_pushliteral(L, "kv");
660 lua_rawset(L, -3); /* metatable(w).__mode = "k" */ 660 lua_rawset(L, -3); /* metatable(w).__mode = "kv" */
661 lua_pushcclosure(L, luaB_newproxy, 1); 661 lua_pushcclosure(L, luaB_newproxy, 1);
662 lua_rawset(L, -3); /* set global `newproxy' */ 662 lua_rawset(L, -3); /* set global `newproxy' */
663 lua_rawset(L, -1); /* set global _G */ 663 lua_rawset(L, -1); /* set global _G */