aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-09-10 14:59:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-09-10 14:59:32 -0300
commitfe0838cd1c75e309f9d136d69f9d77e997181d80 (patch)
tree88acac0e70fe74cb686d87ffb471e906c04b9cfd /ltm.c
parent8acaa2ce07ff19a99a8f6d97627df37fd15cc669 (diff)
downloadlua-fe0838cd1c75e309f9d136d69f9d77e997181d80.tar.gz
lua-fe0838cd1c75e309f9d136d69f9d77e997181d80.tar.bz2
lua-fe0838cd1c75e309f9d136d69f9d77e997181d80.zip
tables and strings respect __len metamethod
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltm.c b/ltm.c
index 3b4715dd..5ab2e8b4 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 2.7 2005/12/22 16:19:56 roberto Exp roberto $ 2** $Id: ltm.c,v 2.8 2006/01/10 12:50:00 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -30,9 +30,9 @@ const char *const luaT_typenames[] = {
30void luaT_init (lua_State *L) { 30void luaT_init (lua_State *L) {
31 static const char *const luaT_eventname[] = { /* ORDER TM */ 31 static const char *const luaT_eventname[] = { /* ORDER TM */
32 "__index", "__newindex", 32 "__index", "__newindex",
33 "__gc", "__mode", "__eq", 33 "__gc", "__mode", "__len", "__eq",
34 "__add", "__sub", "__mul", "__div", "__mod", 34 "__add", "__sub", "__mul", "__div", "__mod",
35 "__pow", "__unm", "__len", "__lt", "__le", 35 "__pow", "__unm", "__lt", "__le",
36 "__concat", "__call" 36 "__concat", "__call"
37 }; 37 };
38 int i; 38 int i;