​Fast is really a powerful and intuitive coding language for macOS, iOS, watchOS and tvOS....

Page 174

Swift

init(module: String, text: String? = nil) { self.module = module self.text = text }

deinit { println("\(module) the deinit()") } }

var paragraph: HTMLElement? = HTMLElement(module: "Inside", text: "ARC Weak References") println(paragraph!.asHTML()) paragraph = nil When we run the above program using playground, we get the following result: <Inside>ARC Weak References</Inside> Inside the deinit()

162


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.