|
|
||
|
Diego Fernandes Nehab wrote:
Last try... I think we missunderstood each other. :-)
[...]
My suggestion is that you use the userdatum directly to reference the object from Lua. You can create an associated table and place a strong ref to it as a field in the C++ object. You set the gettable and settable methods for the userdatum to access the associated table. You set the garbage collection method to unref the associated table. (there is no self field in the associated table, there is no cycle)
Jason