chuckdiesel
Programmer
Won't the garbage collector notice that they are not attached to anything and clean them up just the same?
Maybe the = nothing will somehow flag the garbage collector but will that really matter considering that we have no control over when it collects?
Also doesn't the garbage collector collect when it needs the memory...not just to clean up?
I guess I am asking why anyone would want to go to the trouble of setting each old object to nothing?
Maybe the = nothing will somehow flag the garbage collector but will that really matter considering that we have no control over when it collects?
Also doesn't the garbage collector collect when it needs the memory...not just to clean up?
I guess I am asking why anyone would want to go to the trouble of setting each old object to nothing?