Lurker News
Back to discussion

Comment by treewalking

treewalking1 reply#
They use pass by value but objects are reference valued.
icedchai1 reply#
Yes, I understand... But the result, practically speaking, is objects are passed by reference, just like I said. Methods/functions can modify their parameters.
foepys1 reply#
But you cannot change the reference itself which is possible in languages like C, C++, C#, and many more.
ShroudedNight1 reply#
It's been a while, but my understanding was that actual C++ references were immutable, and what you are describing can only happen as a result of passing a pointer by value.

Continue this thread — 1 reply