Re: [swift-users] #selector() in Swift

2017-08-10 Thread Alex Blewitt via swift-users
> On 10 Aug 2017, at 07:04, Mohit Athwani via swift-users > wrote: > > With closures being first class citizens in Swift and the ability of closures > to be able to capture scope, it seems a little archaic to me that the > #selector() feature exists in Swift. > > For example, why does > func

[swift-users] Why no new Development Snapshots since Aug 3?

2017-08-10 Thread Jens Persson via swift-users
The most recent Development Snapshot is 2017-08-03, but it used to be a new one almost daily. What happened? /Jens ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] Why no new Development Snapshots since Aug 3?

2017-08-10 Thread Michael Gottesman via swift-users
This is a question for Mishal (+CC). > On Aug 10, 2017, at 6:42 PM, Jens Persson via swift-users > wrote: > > The most recent Development Snapshot is 2017-08-03, but it used to be a new > one almost daily. What happened? > /Jens > ___ > swift-users m

[swift-users] Question with calling a method which returns `Self` on super

2017-08-10 Thread 吴君恺 via swift-users
Hi all, here is the scenario, I want to implement a Copying protocol which can be used homogeneously protocol Copying { func copy() -> Self } Because this protocol contains neither associated-type-requirements or self-requirements(requiring a method returning Self is different), it can su

Re: [swift-users] Question with calling a method which returns `Self` on super

2017-08-10 Thread Slava Pestov via swift-users
Hi Lincoln, This is a known issue with ‘super’ method calls: https://bugs.swift.org/browse/SR-1736 A workaround is to cast the result of the supermethod call to Self explicitly: let copied = super.copy() as! Self Slava > On Aug 10, 2017, at 8:16 PM, 吴君恺

Re: [swift-users] Question with calling a method which returns `Self` on super

2017-08-10 Thread Slava Pestov via swift-users
> On Aug 10, 2017, at 8:23 PM, Slava Pestov via swift-users > wrote: > > Hi Lincoln, > > This is a known issue with ‘super’ method calls: > https://bugs.swift.org/browse/SR-1736 > > A workaround is to cast the result of the supermethod call to Self exp

Re: [swift-users] Why no new Development Snapshots since Aug 3?

2017-08-10 Thread Mishal Shah via swift-users
Hi Jens, We are working on resolving LLDB build and test failures, once these failures have been resolved we will be releasing new toolchains. https://ci.swift.org/job/oss-lldb-incremental-osx/ https://ci.swift.org/job/oss-lldb-incremental-linux-ubuntu-16_04/ https://ci.swift.org/job/oss-lldb-

Re: [swift-users] Question with calling a method which returns `Self` on super

2017-08-10 Thread 吴君恺 via swift-users
Thank you, Slava. I will use the trick you provided. And knowing that this bug has already been under tracking is a great comfort to me, really :) Lincoln > 在 2017年8月11日,上午11:29,Slava Pestov 写道: > > >> On Aug 10, 2017, at 8:23 PM, Slava Pestov via swift-users >> mailto:swift-users@swift.org