Comment

Comment by pjmlp

Everything is passed by value.

A numeric value is put into the call stack.

Which in the case of references happens to be the address of pointee.

It is only pass by reference, if what is put into the call stack is the address of the actual variable on the caller stack holding the data.

parent pjmlp 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton