[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    destructor in tables
From:       Stukov <Stukov () gala ! net>
Date:       2005-08-25 19:34:06
Message-ID: 1295518106.20050825233406 () gala ! net
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic