[swift-users] Swift 3 Whole Module Optimization Issue

2016-12-21 Thread Jun Zhang via swift-users
Hi, everyone. I think I found a swift 3 whole module optimization issue. The code below, when building with release configuration and running on an iOS 10 real device, will always causes a crash. import UIKit > class ViewController: UIViewController { > override func viewDidLoad() { >

[swift-users] Swift 3 Whole Module Optimization Issue

2016-12-22 Thread Jun Zhang via swift-users
Hi, everyone. I think I found a swift 3 whole module optimization issue. The code below, when building with release configuration and running on an iOS 10 real device, will always causes a crash. import UIKit > class ViewController: UIViewController { > override func viewDidLoad() { >

Re: [swift-users] Swift 3 Whole Module Optimization Issue

2016-12-23 Thread Jun Zhang via swift-users
This is the bug report: https://bugs.swift.org/browse/SR-3474 On Thu, Dec 22, 2016 at 11:08 AM, Jun Zhang wrote: > Hi, everyone. >I think I found a swift 3 whole module optimization issue. The code > below, when building with release configuration and running on an iOS 10 > real device, will

[swift-users] [Feature Request] Extend the `defer` statement

2017-10-08 Thread Jun Zhang via swift-users
Hi dear swift developers, I am kind of new to swift and I don't know if this feature already exists. And if it exists already please tell me how. Thank you very much! The feature is to capturing the return value (maybe input value also) of the function. Here is the demo code: func tableVi

Re: [swift-users] [Feature Request] Extend the `defer` statement

2017-10-08 Thread Jun Zhang via swift-users
urn result > } > > On Oct 8, 2017, at 7:34 PM, Jun Zhang via swift-users < > swift-users@swift.org> wrote: > > Hi dear swift developers, >I am kind of new to swift and I don't know if this feature already > exists. And if it exists already please tell me how. Th

Re: [swift-users] [Feature Request] Extend the `defer` statement

2017-10-09 Thread Jun Zhang via swift-users
wrote: > This feature request is probably one for swift evolution. > > I like the idea in theory, but I’d prefer to see the return value > identifier being spelled out, i.e. “returnValue” instead of the symbols. > > Jun Zhang via swift-users schrieb am Mo. 9. Okt. > 2017 um 0