Is this paragraph in Code Complete 2 backwards, or am I misunderstanding it?
Posted
by
user828584
on Programmers
See other posts from Programmers
or by user828584
Published on 2012-10-27T02:46:22Z
Indexed on
2012/10/27
11:21 UTC
Read the original article
Hit count: 261
c++
|code-complete
In chapter 13, when talking about pointers, there is a paragraph:
Sometimes, however, you would like to have the semantics of pass by reference—that is, that the passed object should not be altered—with the implementation of pass by value—that is, passing the actual object rather than a copy.
It seems like the author made a mistake and mixed the two up. Is this true, or am I not understanding what he's saying correctly?
© Programmers or respective owner