I know this topic has been discussed many times and I did read about it, but I still don't understand the main difference on the lowest level.
Code:
static i;
for(i = 1; i <= 10; i++)
Code:
for(new i = 1; i <= 10; i++)
From my understanding, in the first case the value always remains in the memory, while in the second case it's removed as soon as it's not being used. Wouldn't that make 'new' better than 'static' in most cases? Besides when you need to hold the value? Or is the part that 'new' originally held no longer reusable?