This is a discussion on if statement, i need help within the C Programming forums, part of the General Programming Boards category; Originally Posted by Elysia In C++, it's even worse because destructors won't necessarily be run. That means all that cleanup ...
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
But it also gives another meaning to undefined. Just because it works doesn't mean it's right and bug free. The behaviour can be undefined.
Therefore it is better to always ensure destructors run. It's rooted deep into the language.
However I'm fairly sure that the OP wouldn't have had to worry about any of this, not anytime soon anyways, lol.
Everytime you segfault, you murder some part of the world
True true, but as they say, it's better early than late. It's better to know good practice and start using it rather than later.