[swift-evolution] Removal of dispatch_once() in Swift 3?

William Shipley wjs at mac.com
Thu Jun 16 16:30:56 CDT 2016


> 	private lazy var floorGeometryAndMaterialBacking: FloorPlatonicGeometryAndMaterial? = 
> 				try! FloorPlatonicGeometryAndMaterial(modelDirectory: self.modelDirectoryURL)

Oddly, the “self.” made all the difference in getting it to compile. I’m not clear why in this case, I guess there’s some part of the language I didn’t learn right. Thanks.

-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160616/19df9d63/attachment.html>


More information about the swift-evolution mailing list