luna-core 2.13.0

Pure-Rust Lua runtime (interpreter only, zero third-party dependencies). The JIT-equipped variant lives in the `luna-jit` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
-- v2.13 CORPUS-IV: __index chain — table -> table -> function.
local base = setmetatable({}, {
  __index = function(_, k) return "fn:" .. k end,
})
local mid = setmetatable({ m = "mid_val" }, { __index = base })
local top = setmetatable({ t = "top_val" }, { __index = mid })
print(top.t)
print(top.m)
print(top.anything)
print(rawget(top, "m"))