CPoint:delete
The delete method deletes an instance of a class and sets its object to nil. This is a generic method that works similarly for most classes. The delete method is the counterpart of the new method which creates an instance of a class. Call delete when you are finished using the instance of this class. Mira automatically deletes all class objects when the script finishes but, it usually is good practice to delete objects when you are finished with them, at least so that you can re use the name.
CPoint:delete()
|
-- create a new instance of of the CPoint class. |
-- |
-- do something with the CPoint object. |
|
-- delete the object and its associated memory. |