Monday, July 14, 2008

Actionscript 3 Class Destructor (in my dream)

I wish Actionscript 4.0 will come with a destructor. It's so useful to not only know when your object is born, but when it's about to die as well. Even though AVM implements garbage collection scheme, there is still no reason why we can't have a destructor. The moment an object becomes a candidate for garbage collection, its destructor can be called and us the users can do whatever we want (such as doing cleanup work, tracking for memory leaks, prepare an epitaph for the object (jk), ...)

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home