[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: destructor in tables
- From: Stukov <Stukov@...>
- Date: Thu, 25 Aug 2005 23:34:06 +0400
Hello Lua Users!
Is it possible now in Lua make same thing with tables ?
class CWrap
{
public:
CWrap(CMyClass* class)
{
mClass=class;
mClass->Stop();
}
~CWrap()
{
mClass->Start();
}
private:
CMyClass* mClass;
}
__gc methametod available only for userdata, but may be there is
solution for this case?
--
Best regards,
Alexi Stukov
mailto:Stukov@gala.net