From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Lua" |
|---|
| claim | "Without lua_ident, the string pool still narrows the version: luaT_eventname[] lists __index __newindex __gc __mode then __eq in 5.1 but __len in 5.2+; __idiv/__band/__bor/__bxor/__shl/__shr/__bnot appear from 5.3 and __close from 5.4. 'loop in gettable' exists only in 5.1/5.2, ''__index' chain too long; possible loop' from 5.3, '_PRELOAD' from 5.2, '__name' from 5.3." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Lua" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "string" |
|---|
| indicator | "order of the __* metamethod names; 'loop in gettable' vs ''__index' chain too long; possible loop'" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "static const char *const luaT_eventname[] (tag v5.4.8); compared with ltm.c at v5.1.1, v5.2.3, v5.3.6, v5.5.1; message presence checked with git grep -F over *.c/*.h at each tag" |
|---|
| repo | "https://github.com/lua/lua" |
|---|
| commit | "6e22fedb74cf0c9b6656e9fce8b7331db847c605" |
|---|
| path | "ltm.c" |
|---|
| lines | "39-46" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Version from metamethod names and messages" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T07:00:31.686Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T02:49:31.396Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched ltm.c at tags v5.1.1, v5.2.3, v5.3.6, v5.4.8: the 5th event name is __eq in 5.1 and __len from 5.2; __idiv/__band/... at 5.3, __close at 5.4. Counted strings per tag in lvm.c/lauxlib.c/loadlib.c/ltm.c/lapi.c: 'loop in gettable' only 5.1/5.2, 'chain too long' from 5.3, _PRELOAD from 5.2, "__name" from 5.3, "__close" 5.4." |
|---|
|
|
|---|