Quote:Original post by Vexorian
The question was: Why the lack of an "auto destroy object when nothing is referencing to it" system?
Because the garbage collector knows what its doing. The whole idea is that you don't worry about garbage collection in general, you just get things working. By adding a second type of garbage collection, you greatly increase the complexity of the programs, which removes the entire reason for it to exist in the first place.
Also, keep in mind that deallocation isn't free. Whenever possible, you want to deallocate lots of memory all at once, it stands to make later allocations cheaper.
CM