The Secret Life of C++: Day 3: Questions from last session

Lets answer some questions from last session:

What does _Unwind_Resume do?

This we will cover in Exceptions today.

If you pass something const, why copy?

Because if you didn't mean to copy, then you would have passed a const reference to the object.

Can't you get away without the return value pointer by looking up the stack and expecting it to be there?

I don't have a solid answer for this one, but one thought I had is cases where you only want to move the stack pointer once in a function body, but you want to call many different functions with return values on the stack, so you want to be able to tell them more complicated places for it than just right at the bottom of the stack.
Richard Tibbetts
Last modified: Wed Jan 21 17:36:31 EST 2004