Created
December 11, 2018 21:35
-
-
Save TachibanaKaoru/dc512ce163dc361bbaaaf93a7e490969 to your computer and use it in GitHub Desktop.
ircular Reference async
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let person1 = Person(name: "π±") | |
let person2 = Person(name: "π¦") | |
let person3 = Person(name: "π·") | |
let person4 = Person(name: "πΌ") | |
let person5 = Person(name: "π»") | |
person1.normalHello() | |
person2.strongHello() | |
person3.weakHello() | |
person4.noescapeHello() | |
person5.noescapeAndWeakHello() | |
// η΅ζ | |
--- init π± --- | |
--- init π¦ --- | |
--- init π· --- | |
--- init πΌ --- | |
--- init π» --- | |
Hello, I am π±! | |
Hello, I am π¦! | |
Hello, I am π·! | |
Hello, I am πΌ! | |
Hello, I am π»! | |
--- deinit π» --- | |
--- deinit π· --- | |
--- deinit π± --- | |
....π¦ [strong] | |
....nil [weak] | |
....πΌ [noescape] | |
--- deinit πΌ --- | |
....nil [noescape and weak] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment