Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Swift by registered user mbabaev ( 5 years ago )
struct S {
var value: Int
}
func test() {
var s = S(value: 10)
let closure1 = { [s] in
print(s.value)
}
let closure2 = {
print(s.value)
}
s.value = 20
closure1()
closure2()
}
Revise this Paste