From 894cd31c5227fd4061f6eb2bd6140c540946d394 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 9 Aug 2005 14:42:02 -0300 Subject: #string is primitive --- lstrlib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 4a99d4d2..a80a00ba 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.119 2005/07/12 14:32:08 roberto Exp $ +** $Id: lstrlib.c,v 1.120 2005/07/31 16:47:34 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -810,8 +810,6 @@ static void createmetatable (lua_State *L) { lua_pop(L, 1); /* pop dummy string */ lua_pushvalue(L, -2); /* string library... */ lua_setfield(L, -2, "__index"); /* ...is the __index metamethod */ - lua_getfield(L, -2, "len"); - lua_setfield(L, -2, "__len"); lua_pop(L, 1); /* pop metatable */ } -- cgit v1.2.3-55-g6feb