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
// In Swift 1.1, I can use "let sideshow : Sideshow!". In Swift 1.2 it has to be a var | |
// Is this due to the change: | |
// "In an initializer, constant properties can now only assign a value once." ? | |
class Main { | |
var name : String | |
let sideshow : ImplicitlyUnwrappedOptional<Sideshow> | |
init (name : String, referenceName : String) { | |
self.name = name | |
self.sideshow = Sideshow(name: referenceName, ref: self) |