Re: [swift-users] Documentation for optional closure arguments

2017-09-20 Thread Saagar Jha via swift-users
Oh, is that what’s happening? I having this issue back in Xcode 8 where it wasn’t recognizing my closure parameters, and I couldn’t figure out what was wrong. Saagar Jha > On Sep 20, 2017, at 17:20, Daryle Walker via swift-users > wrote: > > Trying out Xcode 9. Documenting a function that ta

Re: [swift-users] Swift-C array interop with Swift 4/Xcode 9

2017-09-20 Thread Rick Mann via swift-users
Adding: it seems that while passing &inReq.imageInfo.transformation.0 to an UnsafePointer parameter worked before (passed a pointer to a contiguous block of 16 floats), now it's making a copy of just the first tuple element, and passing a smaller memory block. I think I'm interpreting these resu

[swift-users] Documentation for optional closure arguments

2017-09-20 Thread Daryle Walker via swift-users
Trying out Xcode 9. Documenting a function that takes a trailing closure. The list of arguments includes the closure’s arguments! But if the closure is Optional, the inner arguments are not pierced and therefore not included in the outer function’s summary. Can that be fixed? Sent from my iPhon

[swift-users] Swift-C array interop with Swift 4/Xcode 9

2017-09-20 Thread Rick Mann via swift-users
I've got Swift code wrapping a C API. One of the C structs the API uses looks like this: typedef struct { size_t size; float transformation[16]; float projection[16]; uint32_t width; uint32_t height; } image_info_t; In Swift, the two array members are 16-tuples of floats. Eve

Re: [swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Guillaume Lessard via swift-users
% wget http://swift.org/atom.xml URL transformed to HTTPS due to an HSTS policy [snip] HSTS -> https://tools.ietf.org/html/rfc6797 swift.org has simply become inaccessible to non-secure or misconfigured clients. GL ___ swift-users mailing list swift-u

Re: [swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Craig Maynard via swift-users
Alex, I subscribe to over 60 blogs and ALL of them except swift.org work perfectly with my news reader. Rather than trying to assign blame, I'd like you to reason with me about why this is happening. If you're not willing to meet me halfway, then this is a futile exercise. Craig > On Sep 20,

Re: [swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Alex Blewitt via swift-users
As you will have noted in my prior response, the atom.xml includes the blog post from yesterday that announced Swift 4.0 release. So clearly the posts are included and there is something failing in your client. Please investigate further. The posts appear to be listed in ascending date order (i

Re: [swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Craig Maynard via swift-users
The plot thickens.. Apparently my cranky old news reader doesn't understand SSL (see error below). I tried http://swift.org/atom.xml and now I'm seeing a subset of posts. The last one in the list is dated 1/27/2017 and has the title "Faster Mix-and-Match Builds with Precompiled Bridging Header

Re: [swift-users] difference between two Ranges

2017-09-20 Thread Nevin Brackett-Rozinsky via swift-users
I think you’ll have to write this functionality yourself. If you start with one range and remove from it everything in another range, you will end up with either: i) An empty range, if the first is entirely within the second. ii) A single range, which might be closed, open, or half-open on either

Re: [swift-users] Problem with Access Control and Extensions

2017-09-20 Thread Rick Aurbach via swift-users
Thank you, Adrian. (What I meant by “debating the correctness of my code” was that I wanted to talk about the approach and not about the content of the viewDidLoad() method.) Cheers, Rick Aurbach > On Sep 20, 2017, at 3:13 PM, Adrian Zubarev > wrote: > > I don’t get your problem here. If

Re: [swift-users] Problem with Access Control and Extensions

2017-09-20 Thread Adrian Zubarev via swift-users
I don’t get your problem here. If you don’t want to debate the correctness of your code, why are you asking for help or even showing error messages for a code snippet that cannot work? 1. Drop the access modifier from the extension itself, because this is only for convenience, which may or may

[swift-users] difference between two Ranges

2017-09-20 Thread Седых Александр via swift-users
Hello. I try to get difference between two ranges. For instance I have to know how many meters from me to target who have own size (or range). let range = 0 ... 5 let meFromPoint = 0 ... 10   let setRange = Set ( range ) let setMeFromPoint = Set ( meFromPoint )   let diff = setMeFromPoint .

[swift-users] Problem with Access Control and Extensions

2017-09-20 Thread Rick Aurbach via swift-users
I am trying to write an extension to a UIKit class, but am running into a can’t-win situation: The code I ‘want’ to write looks like: public extension UISplitViewController { override public func viewDidLoad() { super.viewDidLoad() if UIDevice.current.use

Re: [swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Martin Man via swift-users
>From >https://www.osstatus.com/search/results?platform=all&framework=all&search=-9824 > > -9824 = errSSLPeerHandshakeFail This looks like a network issue between your client and swift.org Jus

Re: [swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Craig Maynard via swift-users
I receive a response that appears to be XML, but I don't know if it is well-formed. My newsreader is emitting this error message: 2017-09-20 13:27:28 -0400: Download Error: Domain: SSL Type: error code: -9824 URL: https://swift.org/atom.xml Craig > On Sep 20, 2017, at 12:19 PM, Alex Blewitt

Re: [swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Alex Blewitt via swift-users
The feed seems to have data in it, and includes the swift 4.0 release note: Swift 4.0 Released! Ted Kremenek https://swift.org/blog/swift-4-0-released/"/> 2017-09-19T05:00:00-07:00 https://swift.org/blog/swift-4-0-released/

Swift 4 is now of


[swift-users] RSS feed for the Swift.org blog not working

2017-09-20 Thread Craig Maynard via swift-users
I'm a happy user of NetNewsWire 3.3 and I follow dozens of blogs with no problems. However, when I subscribe to the RSS feed at https://swift.org/atom.xml, I'm not seeing any blog posts. Who should I contact to report a problem with this feed? Craig