[swift-corelibs-dev] dispatch_data_create() crashes with EXC_BAD_INSTRUCTION

2016-04-01 Thread Daniel Eggert via swift-corelibs-dev
This code crashes for me with SwiftFoundation, but not with Darwin Foundation: /// Turn `NSData` into `dispatch_data_t` internal func createDispatchData(data: NSData) -> dispatch_data_t { let c = data.copy() as! NSData let info = Unmanaged.passRetained(c) let destructor = { inf

[swift-corelibs-dev] Foundation and explicit pointer nullability

2016-04-01 Thread Jordan Rose via swift-corelibs-dev
Hey, Philippe, everyone. I've been working on implementing SE-0055: Making pointer nullability explicit , and it's been going well…but only now am I realizing how much it's going to affect Foundatio

Re: [swift-corelibs-dev] NSURL getResourceValue

2016-04-01 Thread Daniel Eggert via swift-corelibs-dev
> On 31 Mar 2016, at 21:44, Tony Parker wrote: > > Hi Zach, Daniel, > >> On Mar 31, 2016, at 11:03 AM, Zach Waldowski via swift-corelibs-dev >> wrote: >> >> The semantics of the methods are fairly nuanced in ObjC. >> >> You can have a resource value that fails to be fetched, or one that >>