Hello.
I've never tried building from the Swift repository, and I think you
don't need to do it either.
What I do is just installing from the AUR, if you install the 'swift'
package it will compile the last release for you, if you install
'swift-bin' it will repackage the ubuntu binary for arch.
If
Hi,
I am hoping someone would be able to help with the following problem:
I am trying to build Swift 3 under ArchLinux. I have followed the build
instructions and everything has been cloned and kick off the build by typing:
./swift/utils/build-script -R
After a long while the build errors out
If I've surmised correctly from other messages on this thread, you should
be able to `import Glibc` and then you can use most of what's in the C
standard library (since Swift interoperates directly with C). The module
map which enables you to import Glibc is:
https://github.com/apple/swift/blob/mas
I'm a new swift person, /long/ time unix/linux developer, mac user but
only mac developer inasmuch as mac is unix. I've installed swift on my
ubuntu box, written hello world, etc.
Now... to write much of anything else, I need a way to
open/read/write/close a file. I don't see anything like that
On Sat, Jul 16, 2016 at 1:16 PM, Andrew Trick via swift-users
wrote:
>
>> On Jul 16, 2016, at 5:28 AM, J.E. Schotsman via swift-users
>> wrote:
>>
>> A mysterious bug has got me thinking about using UnsafePointer with
>> NSData (Swift 2).
>>
>> Is this safe:
>>
>> let data:NSData = …
>> let dat
> On Jul 16, 2016, at 5:28 AM, J.E. Schotsman via swift-users
> wrote:
>
> A mysterious bug has got me thinking about using UnsafePointer with
> NSData (Swift 2).
>
> Is this safe:
>
> let data:NSData = …
> let dataStart = UnsafePointer(data:NSDAta.bytes)
>
> myProcessdata1(dataStart,data.l
A mysterious bug has got me thinking about using UnsafePointer with
NSData (Swift 2).
Is this safe:
let data:NSData = …
let dataStart = UnsafePointer(data:NSDAta.bytes)
myProcessdata1(dataStart,data.length)
… (no more references to data)
And this:
let data:NSData = …
myProcessdata2(data)
…