[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Explicit call of C++ destructors from within Lua (Lunar based)
- From: Michael Bauroth <Michael.Bauroth@...>
- Date: Thu, 20 Nov 2008 08:54:42 +0100
Hi,
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
Micha