[chuck-users] Destroying object instances ... unchuck?

David Michael david.michael at gmail.com
Sun Jan 28 16:20:25 EST 2007

Is there a way to explicitly destroy object references?

For instance, in a loop, I am creating an array of objects like so:

Object objects[4];
0 => int count;

for(0 => int i; i < 4; i++ )
  new Object @=> objects[count];

Now how would I delete the Object referenced at, say, objects[0]?

If I reassign an Object to objects[0], what happens to the object that
was there? Is it destroyed and cleaned up, or do I need to delete the
object from memory somehow?


More information about the chuck-users mailing list