From fe0838cd1c75e309f9d136d69f9d77e997181d80 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 10 Sep 2007 14:59:32 -0300 Subject: tables and strings respect __len metamethod --- ltm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 3b4715dd..5ab2e8b4 100644 --- a/ltm.c +++ b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: ltm.c,v 2.7 2005/12/22 16:19:56 roberto Exp roberto $ +** $Id: ltm.c,v 2.8 2006/01/10 12:50:00 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -30,9 +30,9 @@ const char *const luaT_typenames[] = { void luaT_init (lua_State *L) { static const char *const luaT_eventname[] = { /* ORDER TM */ "__index", "__newindex", - "__gc", "__mode", "__eq", + "__gc", "__mode", "__len", "__eq", "__add", "__sub", "__mul", "__div", "__mod", - "__pow", "__unm", "__len", "__lt", "__le", + "__pow", "__unm", "__lt", "__le", "__concat", "__call" }; int i; -- cgit v1.2.3-55-g6feb