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
11
-- v2.13 CORPUS-IV: __index fires for MISSING keys; a key set
-- then removed (=nil) is missing again.
local mt = { __index = function(_, k) return "idx:" .. tostring(k) end }
local t = setmetatable({}, mt)
print(t.a)
t.a = "real"
print(t.a)
t.a = nil
print(t.a)
t.b = false
print(t.b)