lua-users home
lua-l archive

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


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