Friday, February 21, 2014

implicit passing by reference

Newsgroup: comp.lang.c++

Subject: implicit passing by reference

From: jerry.jeremiah@...

Date: Thu, 20 Feb 2014 20:45:27 -0800 (PST)



In this topic



http://ift.tt/1fobfKU



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







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://ift.tt/1dcvLKj

View all the progranning help forums at:

http://ift.tt/1dP9txN

No comments:

Post a Comment