diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-09-10 14:59:32 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-09-10 14:59:32 -0300 |
| commit | fe0838cd1c75e309f9d136d69f9d77e997181d80 (patch) | |
| tree | 88acac0e70fe74cb686d87ffb471e906c04b9cfd /ltm.h | |
| parent | 8acaa2ce07ff19a99a8f6d97627df37fd15cc669 (diff) | |
| download | lua-fe0838cd1c75e309f9d136d69f9d77e997181d80.tar.gz lua-fe0838cd1c75e309f9d136d69f9d77e997181d80.tar.bz2 lua-fe0838cd1c75e309f9d136d69f9d77e997181d80.zip | |
tables and strings respect __len metamethod
Diffstat (limited to 'ltm.h')
| -rw-r--r-- | ltm.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.h,v 2.5 2005/05/20 15:53:42 roberto Exp roberto $ | 2 | ** $Id: ltm.h,v 2.6 2005/06/06 13:30:25 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 | */ |
| @@ -20,6 +20,7 @@ typedef enum { | |||
| 20 | TM_NEWINDEX, | 20 | TM_NEWINDEX, |
| 21 | TM_GC, | 21 | TM_GC, |
| 22 | TM_MODE, | 22 | TM_MODE, |
| 23 | TM_LEN, | ||
| 23 | TM_EQ, /* last tag method with `fast' access */ | 24 | TM_EQ, /* last tag method with `fast' access */ |
| 24 | TM_ADD, | 25 | TM_ADD, |
| 25 | TM_SUB, | 26 | TM_SUB, |
| @@ -28,7 +29,6 @@ typedef enum { | |||
| 28 | TM_MOD, | 29 | TM_MOD, |
| 29 | TM_POW, | 30 | TM_POW, |
| 30 | TM_UNM, | 31 | TM_UNM, |
| 31 | TM_LEN, | ||
| 32 | TM_LT, | 32 | TM_LT, |
| 33 | TM_LE, | 33 | TM_LE, |
| 34 | TM_CONCAT, | 34 | TM_CONCAT, |
