> What are the automatic generators compatible with Lua 5.2 (rcX) ?
> -dub?
> -toLua++?
> -SWIG?
The only 5.1 specific part of dub (that I am aware of) is in the "setupLuaThread" method of the LuaObject.cpp file.
This method stores a reference of the associated table inside the userdata fenv.
In 5.1
userdata ---> fenv --> thread --> self (lua table, on thread stack)
^ |
| |
+--------------------------------+
In 5.2
I guess this should become
userdata ---> _ENV --> thread --> self (lua table, on thread stack)
^ |
| |
+--------------------------------+
But I had some trouble finding how to set _ENV with the C API on a userdata (and maybe I misunderstood _ENV).
If anyone knows....
Gaspard