J
jerry.jeremiah
In this topic
http://stackoverflow.com/questions/...-why-my-for-loop-will-not-count-all-the-way-u
The person that answers it says:
You have to remember that objects are sent to functions 'by reference'.
But the object being passed contains only one int member and the function the object is being passed to clearly takes it's parameter by value and stores it in a member value.
Do objects really always pass by reference regardless of what the parameter list says? And, if so, why would it do that? I would usderstand if the function took its parameter explicitly by reference...
Thanks for clearing up mu confusion.
Jerry
http://stackoverflow.com/questions/...-why-my-for-loop-will-not-count-all-the-way-u
The person that answers it says:
You have to remember that objects are sent to functions 'by reference'.
But the object being passed contains only one int member and the function the object is being passed to clearly takes it's parameter by value and stores it in a member value.
Do objects really always pass by reference regardless of what the parameter list says? And, if so, why would it do that? I would usderstand if the function took its parameter explicitly by reference...
Thanks for clearing up mu confusion.
Jerry