> If you need a "non-volatile" reference to a Lua object in C, you must use
> references (see lua_ref).
In version 2.5, the same C type is used to represent both Lua objects
and references thereto. It would be nice to have some comile-time
protection against conflating the two. Perhaps this issue has been
addressed in Lua 3.1?