[swift-dev] NSProxy dynamic casting to Swift or ObjC class behaves differently

2016-06-08 Thread Yavuz Nuzumlalı via swift-dev
Hi all, swift_dynamicCastClassUnconditional and swift_dynamicCastObjCClassUnconditional

[swift-dev] Fwd: [swift-evolution] [Draft] Change @noreturn to unconstructible return type

2016-06-08 Thread L. Mihalkovic via swift-dev
I realize that this message might have more relevance in this list. Let me know if that is not the case. Begin forwarded message: > From: L Mihalkovic > Date: June 8, 2016 at 7:49:22 AM GMT+2 > To: Thorsten Seitz > Cc: Michael Peternell , swift-evolution > , Dave Abrahams , Douglas > Gregor

[swift-dev] Fwd: [swift-evolution] [Draft] Change @noreturn to unconstructible return type

2016-06-08 Thread L. Mihalkovic via swift-dev
More thoughts on protocols used more systematically to replace compiler magic. Begin forwarded message: > From: L Mihalkovic > Date: June 8, 2016 at 8:07:02 AM GMT+2 > To: Thorsten Seitz > Cc: Michael Peternell , swift-evolution > , Dave Abrahams , Douglas > Gregor , Joe Groff , Chris Lattner

[swift-dev] VS Code language protocol

2016-06-08 Thread Alex Blewitt via swift-dev
There is an increasing number of languages and IDEs supporting VS Code’s language agnostic server protocol. https://github.com/Microsoft/vscode-languageserver-protocol/wiki/Protocol-Implementations Alex ___ swift-dev mailing list swift-dev@swift.org ht

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #5220

2016-06-08 Thread Austin Zheng via swift-dev
The test that's failing is a test that should be unrelated to the change I made (I added a few tests and removed two comments from `String.swift`). I can spin up a Linux VM to investigate further if you'd like. Austin On Wed, Jun 8, 2016 at 9:33 AM, wrote: > [FAILURE] oss-swift-incremental-RA-l

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #5220

2016-06-08 Thread Arnold Schwaighofer via swift-dev
This might be a spurious failure. I suggest waiting for the next build to see if sticks. > On Jun 8, 2016, at 9:43 AM, Austin Zheng wrote: > > The test that's failing is a test that should be unrelated to the change I > made (I added a few tests and removed two comments from `String.swift`).

Re: [swift-dev] NSProxy dynamic casting to Swift or ObjC class behaves differently

2016-06-08 Thread Joe Groff via swift-dev
> On Jun 8, 2016, at 12:44 AM, Yavuz Nuzumlalı via swift-dev > wrote: > > Hi all, > > swift_dynamicCastClassUnconditional and > swift_dynamicCastObjCClassUnconditional methods behave differently while > verifying casting. > > swift_dynamicCastObjCClassUnconditional method calls -isKindOfCla

Re: [swift-dev] NSProxy dynamic casting to Swift or ObjC class behaves differently

2016-06-08 Thread Jordan Rose via swift-dev
> On Jun 8, 2016, at 10:52, Joe Groff via swift-dev wrote: > >> >> On Jun 8, 2016, at 12:44 AM, Yavuz Nuzumlalı via swift-dev >> wrote: >> >> Hi all, >> >> swift_dynamicCastClassUnconditional and >> swift_dynamicCastObjCClassUnconditional methods behave differently while >> verifying cast

Re: [swift-dev] NSProxy dynamic casting to Swift or ObjC class behaves differently

2016-06-08 Thread Yavuz Nuzumlalı via swift-dev
Hmm, interesting. So, we can say that NSProxy class, which is the base structure for implementing proxy pattern, will not work for a Swift type, right? And I simply can't use proxy pattern if real object can be a Swift type. In my use case, I have a framework, and I want to switch developer's som

Re: [swift-dev] NSProxy dynamic casting to Swift or ObjC class behaves differently

2016-06-08 Thread Yavuz Nuzumlalı via swift-dev
And +1 for documentation. Do you have any guide about how dynamic casting actually works? It would perfectly fit there. And if there is no public guide, I think it would be great to have one because as far as I see from the code, there are many different scenarios and different behaviors for each

Re: [swift-dev] NSProxy dynamic casting to Swift or ObjC class behaves differently

2016-06-08 Thread Brent Royal-Gordon via swift-dev
> In my use case, I have a framework, and I want to switch developer's some > delegate object with my NSProxy standin, listen delegate method myself, then > forward to the developer's original delegate object. > > It was working without any issues for delegate objects which are Objective-C > cl

[swift-dev] Help needed: Removing inout shadow copy from SILGen

2016-06-08 Thread Daniel Duan via swift-dev
Hi all, I'm resuming work on removing the SILGen for the inout shadow copy. Making this change involes quite a bit of tests updates. I'd love some one to review this commit in SILGenProlog.cpp before I dive back into the deep end: https://github.com/dduan/swift/commit/e56d73c065bec7bdde7c0ffee42

Re: [swift-dev] [Swift CI] Build Still Failing: 0. OSS - Swift Incremental RA - OS X (master) #4500

2016-06-08 Thread Daniel Dunbar via swift-dev
Should be fixed in 3a4d99e. - Daniel > On Jun 8, 2016, at 8:41 PM, no-re...@swift.org wrote: > > New issue found! > > [FAILURE] oss-swift-incremental-RA-osx [#4500] > > Build URL:https://ci.swift.org/job/oss-swift-incremental-RA-osx/4500/ >