[swift-users] Refining generics in classes

2017-11-15 Thread Jon Shier via swift-users
Swift Users: I have a generics use case which has somewhat stumped me. I have two related protocols, JSONDecodable and CompressedDecodable, and CompressedDecodable inherits from JSONDecodable (though that relationship isn’t strictly necessary). I also have a generic function that

[swift-users] Swift Package Manager and iOS

2017-11-15 Thread Седых Александр via swift-users
Hello. I start learn Swift Package Manager.  Is exist a simple way to generate Xcode project with file Package.swift (which download all code) for iOS template in Xcode? Something about  $ swift package init --ios template =)) -- Alex Sedikh___ swift-

[swift-users] My mail for posts

2017-11-15 Thread mangal pavan via swift-users
Regards mangal pavan ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] Making a copy of an UnsafePointer

2017-11-15 Thread Rick Mann via swift-users
> On Nov 15, 2017, at 00:48 , Quinn The Eskimo! via swift-users > wrote: > > > On 15 Nov 2017, at 04:16, Rick Mann via swift-users > wrote: > >> Is UnsafeMutablePointer<> not memory managed? > > It is not. Specifically, the code you posted creates a copy of the data and > then never des

Re: [swift-users] Making a copy of an UnsafePointer

2017-11-15 Thread Quinn "The Eskimo!" via swift-users
On 15 Nov 2017, at 04:16, Rick Mann via swift-users wrote: > Is UnsafeMutablePointer<> not memory managed? It is not. Specifically, the code you posted creates a copy of the data and then never destroys it. If I were in your shoes I’d construct a `Data` value from the unsafe pointer and th