Cool presentation! The thing to note in t13:49 is that a.textContainer and b.textContainer are pointing to the same instance of TextContainer. Line "var b = a" does create a copy but what is copied is a reference to the same object :) If someone is interested more in this then existential and value witness conttainers are the keywords to search for :)
Cool presentation!
The thing to note in t13:49 is that a.textContainer and b.textContainer are pointing to the same instance of TextContainer. Line "var b = a" does create a copy but what is copied is a reference to the same object :) If someone is interested more in this then existential and value witness conttainers are the keywords to search for :)