tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
40 stars 36 forks source link

Clarify assignment semantics #251

Open novusnota opened 3 weeks ago

novusnota commented 3 weeks ago

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)?