Re: [swift-users] Unavailable initializers in -Swift.h

2016-06-08 Thread Jordan Rose via swift-users
Seems reasonable to me. It looks like SR-746 tracks the same thing. Patches welcome! Jordan > On Jun 8, 2016, at 7:06, Svein Halvor Halvorsen via swift-users > wrote: > > This is even worse if I want to create a singleton, and ensure that the only > way

Re: [swift-users] Unavailable initializers in -Swift.h

2016-06-08 Thread Svein Halvor Halvorsen via swift-users
This is even worse if I want to create a singleton, and ensure that the only way to access it, is through a static let on the class: class Singleton: NSObject { static let instance = Singleton() private override init() { super.init() } } In Swift, I can't instantiate this clas