Am 03.01.2008 um 15:02 schrieb Paul Brook:

Having to check every return value is extremely tedious and (as you've proved)
easy to miss.

Checking every return value is a measure for programming reliable code.

If the allocation fails we don't have any viable alternatives, so we may as well stop right there.

Stop != segfault? What about a meaningful exit message? What if the code doesn't segfault but runs havok?


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/






Reply via email to