- Hands-On Design Patterns with Swift
- Florent Vilmart Giordano Scalzo Sergio De Simone
- 59字
- 2021-07-02 14:45:05
Strong references
Strong references are the default. Any time that you set a property on an object or capture a reference inside a block, the reference count increases on the object, and the lifetime of the object is extended:
class Child {
}
class Parent {
let children: [Parent]
}
let c = MyClass()
let other = MyOtherClass(class: c)
推薦閱讀
- SQL Server 2016 數(shù)據(jù)庫教程(第4版)
- Test-Driven Development with Mockito
- 云計算環(huán)境下的信息資源集成與服務(wù)
- 文本數(shù)據(jù)挖掘:基于R語言
- MySQL基礎(chǔ)教程
- R數(shù)據(jù)科學實戰(zhàn):工具詳解與案例分析(鮮讀版)
- 達夢數(shù)據(jù)庫性能優(yōu)化
- gnuplot Cookbook
- Apache Kylin權(quán)威指南
- 數(shù)據(jù)庫原理與應(yīng)用
- 探索新型智庫發(fā)展之路:藍迪國際智庫報告·2015(下冊)
- SQL Server 2012實施與管理實戰(zhàn)指南
- R Object-oriented Programming
- Doris實時數(shù)倉實戰(zhàn)
- 智慧城市中的大數(shù)據(jù)分析技術(shù)