Comment

Comment by colanderman

No, it really is different. In C++ you can assign to variable references without additional syntax. You cannot do this (at all) in Java.

I don't know what you mean by "really pass-by-reference". There is no such concept of a "reference" at the CPU level; nor is that relevant to language semantics. If you were to look at the generated assembly it would look identical to as if pointer referencing and dereferencing were used.

parent colanderman 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton