Re: [swift-corelibs-dev] NSCoding methods

2015-12-29 Thread Luke Howard via swift-corelibs-dev
OK, so I’ve cleaned up the commit history for the NSCoding branch, you can find it here still: https://github.com/lhoward/swift-corelibs-foundation/tree/lhoward/nscoding I haven’t opened a pull request as I’d like to g

Re: [swift-corelibs-dev] NSCoding methods

2015-12-29 Thread Luke Howard via swift-corelibs-dev
> On 30 Dec 2015, at 12:03 AM, Luke Howard wrote: > > * Something weird is going on with casting over which completely breaks > NSKeyedArchiver. I can reproduce it with the following: > > let foo = (NSMutableArray() as? AnyObject) as? NSCoding More details at: https://bugs.swift.org/bro

Re: [swift-corelibs-dev] NSCoding methods

2015-12-29 Thread Philippe Hausler via swift-corelibs-dev
Responses inline: > On Dec 29, 2015, at 5:03 AM, Luke Howard wrote: > > OK, so I’ve cleaned up the commit history for the NSCoding branch, you can > find it here still: > > https://github.com/lhoward/swift-corelibs-foundation/tree/lhoward/nscoding >

Re: [swift-corelibs-dev] NSCoding methods

2015-12-29 Thread Luke Howard via swift-corelibs-dev
> On 30 Dec 2015, at 6:20 AM, Philippe Hausler wrote: > >> * Something weird is going on with casting over which completely breaks >> NSKeyedArchiver. I can reproduce it with the following: >> >> let foo = (NSMutableArray() as? AnyObject) as? NSCoding https://github.com/lhoward/swift-core

Re: [swift-corelibs-dev] NSCoding methods

2015-12-29 Thread Luke Howard via swift-corelibs-dev
OK, it is working on Linux (lightly tested). It needs a compiler fix though, see [SR-412]. — Luke ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

[swift-corelibs-dev] Equality, etc in Foundation

2015-12-29 Thread Luke Howard via swift-corelibs-dev
Whilst implementing XCTests for NSKeyedUnarchiver, I noticed some issues with equality. Let’s say I have the following simple Swift program: import SwiftFoundation let url1 = NSURL(string: "foo.xml", relativeToURL:NSURL(string: "https://www.example.com";))! let url2 = NSURL(stri

Re: [swift-corelibs-dev] Equality, etc in Foundation

2015-12-29 Thread Luke Howard via swift-corelibs-dev
Proposed fix: https://github.com/lhoward/swift-corelibs-foundation/commit/fe5dcce6ccf06d2f5b8e85c792012dbaee8f59f7 Also tracking in [SR-414]. > On 30 Dec 2015, at 6:15 PM, Luke Howard via swi