lua-users home
lua-l archive

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


I've made a Lua based GUI application with Lunar binding to the C++ core. The GUI will be constructed in Lua, backed by related C++ classes. Sometimes I build temporary hierarchical structures (e.g. panel with 3 buttons), which I want to delete later on.

Now my question: Is it possible to simply call the explicit destructor of such a base node from Lua side (Lunar approach), so that the C++ core can remove the hierarchy or is the only way to set the Lua variable to nil, so that the garbage collection can make the rest?

Unfortunately haven't found something meaningful in the net until now.

Best Regards