I want to have C++ objects that I can read/write in both C++ & Lua.
I have looked at: http://www.lua.org/pil/28.html
However, I do not like that solution, since my objects have constructors & destructors (and they are important as I use RAII and these take care of reference counts).
What I don't like in the PIL solution is that the object is allocated in Lua's heap.
What i want instead, is to create hte C++ object on my own, and just have lua have a way to do get/set on them.
Does anyone have a good tutorial/link on this?
Tanks!