A side question: I see Soulstorm doing:
void stash::clearStash(){
currentSize = 0;
currentStorage = 0;
ch = new char [0];
next = currentStorage - currentSize;
} So he doesn't delete [] anything, will
new do a resize next time it's called (like realloc)?
So then the following would function correctly:
int main()
{
char * ch = new char[5];
ch = new char[30];
ch = new char[1];
delete [] ch;
return 0;
}