tact-docs icon indicating copy to clipboard operation
tact-docs copied to clipboard

Clarify assignment semantics

Open novusnota opened this issue 1 year ago • 4 comments
trafficstars

Consider the following part of a larger snippet:

let m: map<K, V> = self.map;

Do we get a new reference to self.map or there is some copying going under the hood?

Same question goes for Structs/Messages, and also to function calls — are we using CBV (Call by value)?

novusnota avatar Jun 08 '24 15:06 novusnota