Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's nitpicking. Pass-by-reference is defined by its semantics, not by an implementation that avoids copying anything.

There is no such thing as a "reference object" in C++ that you could pass by value. References may be implemented using pointers under the hood and those pointers may be copied, but on a semantic level references themselves are not objects that you can copy or take the address of (contrary to pointers).



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: