Re: [swift-users] Module not found in Test-Swift.h

2016-12-09 Thread Jordan Rose via swift-users
:-( I can't think of one, sorry. Mixed-source unit test targets have been a lower priority, especially importing the Swift side into Objective-C. Jordan > On Dec 9, 2016, at 10:20, David Catmull wrote: > > Done: https://bugs.swift.org/browse/SR-3381 >

Re: [swift-users] Swift ported on FreeBSD platform

2016-12-09 Thread Sid via swift-users
Thank you for your replies. I emailed the port maintainer for Swift at FreeBSD pointing to this thread a few days ago. Give it a week or so, for a response. I wasn't knowledgeable enough to build it for Swift version 3 and send back the Makefile instructions. I told the maintainer there wasn't a

[swift-users] Access level of members defined in an extension

2016-12-09 Thread Martin R via swift-users
I have a question about the relationship between the access level of an extension and the access level of members defined in that extension. The "Access Control" chapter in "The Swift Programming Language" states about extensions: Alternatively, you can mark an extension with an explicit ac

Re: [swift-users] Getting at the bytes of Data

2016-12-09 Thread Ray Fix via swift-users
Keeping the closure open until the method ends and returning the result was eye opening. Thanks again! I thought about making the destination buffer a Data as well but I kind of feel like it is better the way it is as it keeps down the number of scopes. It kind of starts feeling like a pyramid

Re: [swift-users] [swift-evolution] CMTimebaseAddTimerDispatchSource and new libdispatch swift 3 version

2016-12-09 Thread Jordan Rose via swift-users
This kind of question is more appropriate for the swift-users list. (Additionally, please do file a bug at bugreport.apple.com for updated documentation!) Jordan > On Dec 8, 2016, at 03:17, Vincent Jousse via swift-evolution > wrote: > > Hi, > > I’m migrating some code from swift 2 to swif

Re: [swift-users] Module not found in Test-Swift.h

2016-12-09 Thread David Catmull via swift-users
Done: https://bugs.swift.org/browse/SR-3381 Any suggestions for a workaround? Or should I watch the bug report for that? On Fri, Dec 9, 2016 at 10:59 AM, Jordan Rose wrote: > Hm, it definitely shouldn't be importing the app (since there's not a real > Objective-C module there). This might be a

Re: [swift-users] Getting at the bytes of Data

2016-12-09 Thread Philippe Hausler via swift-users
What you have is probably ok in common usage; but there is a chance that it would not properly do a copy on write change as you expect if the Data was somehow obtained from a multi-threaded environment. Here is a slight refactor (with a few extra fixes and comments for you that might save you s

Re: [swift-users] Module not found in Test-Swift.h

2016-12-09 Thread Jordan Rose via swift-users
Hm, it definitely shouldn't be importing the app (since there's not a real Objective-C module there). This might be a known issue, but I'm not sure offhand. Can you file an issue at bugs.swift.org ? > On Dec 9, 2016, at 09:10, David Catmull via swift-users > wrote: > >

[swift-users] Module not found in Test-Swift.h

2016-12-09 Thread David Catmull via swift-users
In my test target, when I include the Test-Swift.h file, there is a line that says "@import MyAppName" which yields the error "Module 'MyAppName' not found". Turning on the Defines Module setting for my app target didn't help. So why is that import there, and what is required for it to be found? __

Re: [swift-users] Getting at the bytes of Data

2016-12-09 Thread Ray Fix via swift-users
Hi Philippe, Thank you for your response! > On Dec 9, 2016, at 8:44 AM, Philippe Hausler wrote: > > So letting the bytes escape from the closure could potentially be in that > territory of “bad things may happen”. If you know for certain that the Data > will not be mutated and it’s underlying

Re: [swift-users] Getting at the bytes of Data

2016-12-09 Thread Philippe Hausler via swift-users
So letting the bytes escape from the closure could potentially be in that territory of “bad things may happen”. If you know for certain that the Data will not be mutated and it’s underlying storage will last for the duration of the usage then you should be able to get away with it. The bytes po

[swift-users] Getting at the bytes of Data

2016-12-09 Thread Ray Fix via swift-users
I am writing a tutorial and creating a wrapper on streaming compression. In the code, I setup the stream source pointer: (input is of type Data) // set up the stream with the input source input.withUnsafeBytes { (bytes: UnsafePointer) in stream.src_ptr = bytes } stream.src_size = in

Re: [swift-users] Trouble with initial checkout

2016-12-09 Thread Ryan Parman via swift-users
I’ll give that a shot. Thank you! -- Ryan Parman https://github.com/skyzyx https://keybase.io/skyzyx > On Dec 8, 2016, at 3:08 AM, Alex Blewitt wrote: > > If you want to use the branch swift-3.0.2-PREVIEW-1 tag then you should run > update-checkout with that tag name, to ensure that you're o