Message from C, C++ discussions

January 2020

— It depends if it is a pure value or a dynamic allocated object/pointer/reference/rvalue ref

— 

C++ I suppose? Usually custom copyctor implements deep copy, or if fields are either trivial or have custom copyctors

— user-provided's the name

— In C++ you don't usually talk in those terms. An object itself can be copyed (deep copy) or moved (transfer all the contents of the objecto to another, leaving the first one empty). A shallow copy is what in C++ we call a reference (kind of), because it's the same object, just with another name

Message permanent page

— A reference is just a pointer behind the scenes, just to make programmers lifes easier

— Hi Moritz

— What's your issue?

— ....

— Any one there?

— Yes?

— 🤣

— Hiii