In this example, we are using a native Lua object to which our proxy will forward all operations that are applied to it.
target = {}
p = Proxy(target, {})
p.a = 37 -- operation forwarded to the proxy
print(target.a) -- 37. The operation has been properly forwarded
See also
* "Lua is awesome" Brendan Eich presentation at LuaConf (slides)
* Lua Already Implemented This proposal page and Lua builtin features page
* Tutorial on Lua builtin feautures that were there since day one
* Old Javascript Proxy Attempt API page