So you mean I have to have another dummy variable?
I have another question. If f(foo *a) has a dynamic variable with "new". Is the variable deleted after the function operates?
You could have checked this yourself by making a destructor that prints something to the screen and see if it's get's called at any point in that program ;) .