lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> Is there any way I can get rid of all the Lua proxies of a C++
>> object I've deleted?
>The easiest way is to use a double proxy.

Yes, seems to be the only option.

>However, I'm not sure if you are asking the right question.
>Perhaps you would be better off taking advantage of Lua's
>garbage collector and not deleting your C++ object until 
>there are no references to it left. 

Not possible, since these objects are created before any 
Lua state is created, and reversing the order of these operations
is also not possible.