In this chapter:
Close your eyes for a moment and imagine writing your application as though your code could never fail. That’s right—there’s always enough memory, no one ever passes you an invalid pointer, and the files you count on always exist. Wouldn’t it be a pleasure to write your code if you could make these assumptions? Your code would be so much easier to write, to read, and to understand. No more fussing with
if statements here and
gotos there—in each function, you’d just write your code top to bottom.
If this kind of straightforward programming environment seems like a dream to you, you’ll love structured exception handling (SEH). The virtue of SEH is that as ...