Lua objects

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Lua objects

Norman Ramsey-3
> 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?

Norman