mirror of
https://github.com/JorjBauer/lua-6502.git
synced 2025-01-13 07:30:05 +00:00
9 lines
216 B
Lua
9 lines
216 B
Lua
return function (x)
|
|
return setmetatable({}, { __index = x,
|
|
__newindex = function(table, key, value)
|
|
error("Attempt to modify read-only table")
|
|
end,
|
|
__metatable = false
|
|
})
|
|
end
|