Re: [swift-users] Coerce NSData to Data

2016-10-17 Thread Ryan Lovelett via swift-users
> Does Data have a regular initializer to construct from an NSData? It does. I've gone ahead and refactored the code to just not use NSData. Thanks! ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] Coerce NSData to Data

2016-10-14 Thread Joe Groff via swift-users
> On Oct 14, 2016, at 11:15 AM, Ryan Lovelett via swift-users > wrote: > > I'm puzzeled by the behavior of the automatic coercion. Specifically > when something will work and when it will not. It at least has something > to do with the platform. That much I have tracked down. > > I've attached

[swift-users] Coerce NSData to Data

2016-10-14 Thread Ryan Lovelett via swift-users
I'm puzzeled by the behavior of the automatic coercion. Specifically when something will work and when it will not. It at least has something to do with the platform. That much I have tracked down. I've attached a file, bridge.swift, that on Linux will fail to compile with the error: cannot conver