Ok, just started using types. I've come from the dark world of arrays, so types are confusing me a bit :)
Is there a command to tell me how many items are alive in my type? E.g If I've done a.alien = new alien and b.alien = new alien, is there a command to tell me I now have 2 aliens?
When I delete an item from my type, and then create a new item, would the new item be the 'first' in the list? E.G If I did a.alien = new alien, delete a, b.alien = new alien, would b.alien now be the first in the list? I would assume it is, but it doesn't seem to be in my program. If I create b.alien, it seems to still be the second in the list, even though a is now dead.... ?
Is there a command to tell me how many items are alive in my type? E.g If I've done a.alien = new alien and b.alien = new alien, is there a command to tell me I now have 2 aliens?
When I delete an item from my type, and then create a new item, would the new item be the 'first' in the list? E.G If I did a.alien = new alien, delete a, b.alien = new alien, would b.alien now be the first in the list? I would assume it is, but it doesn't seem to be in my program. If I create b.alien, it seems to still be the second in the list, even though a is now dead.... ?