22
Swift言語で感嘆符はどういう意味ですか?
Swiftプログラミング言語ガイドには、次の例があります。 class Person { let name: String init(name: String) { self.name = name } var apartment: Apartment? deinit { println("\(name) is being deinitialized") } } class Apartment { let number: Int init(number: Int) { self.number = number } var tenant: Person? deinit { println("Apartment #\(number) is being deinitialized") } } …