It seems like the only way is upgrading to Ubuntu 16.04 for now?
在 Wed, 30 Aug 2017 18:09:53 +0800,Ankit Aggarwal
写道:
Thanks for the detailed info. I was able to reproduce this. There seems
to be some problem with importing modules without their swiftdoc in
Ubuntu 14.04. I've filed https
tall the Swift toolchain?
Also, can you post the output of:
$ swift build -v
Thanks!
On Tue, Aug 29, 2017 at 8:14 PM, adelzhang via swift-users <
swift-users@swift.org> wrote:
Hi, everyone.
Installing swift on linux is not that easy. Following
https://swift.org/getting-started/#using-
Hi, everyone.
Installing swift on linux is not that easy. Following
https://swift.org/getting-started/#using-the-package-manager instruction,
but `swift build` failed:
```
error: manifest parse error(s):
/home/vagrant/hello/Package.swift:4:8: error: no such module
'PackageDescription'
i
hello all!
I'm wondering if somebody can explain following snippet to me.
protocol P {
associatedtype Element
func next() -> Element
}
protocol Q {
associatedtype T : P
func makeT() -> T
}
extension Q where Self.T == Self {
func makeT
at 17:11, adelzhang via swift-users
wrote:
Thanks for reply.
How does Swift choose *rules* as you said?
Swfit encourage to override the property observer. But when we change
the own property in Child class's `didSet` observer, that would cause
infinite loop:
class Base {
t;base didset" and "child didset"
In Swift, as or as! won't change the instance's dynamic type. So it
does nothing. `type(of:base)` is still `Child`.
Zhaoxin
On Sun, Sep 4, 2016 at 6:25 PM, adelzhang via swift-users
wrote:
Hi all
It sounds convenient to mo
Hi all
It sounds convenient to monitor change in property's value using property
observer.
But TSPL(The Swift Programming Language) talk little about property
observer. There
are some questions abouts property observer.
1) when `didSet` observer will call?
I assume it's fine that changing
I am confused by the code snippet following:
func foo(_ value: Int?) {
// do nothing
}
let a: Int = 2
foo(a) // it works!
Why swift don't warn the type mismatch? I am woking on Xcode Version 7.3.1.
___
swift-users mailing