You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- It is now possible to use a pointer to `struct` to obtain a pointer to one
47
+
of its stored properties:
48
+
49
+
```swift
50
+
withUnsafeMutablePointer(to: &myStruct) {
51
+
let interiorPointer =$0.pointer(to: \.myProperty)!
52
+
returnmyCFunction(interiorPointer)
53
+
}
54
+
```
55
+
- Comparisons between pointers have been simplified by being more permissive.
56
+
Since pointers are representations of memory locations within a single pool of
57
+
underlying memory, Swift now allows comparing pointers without requiring type
58
+
conversions with the `==`, `!=`, `<`,`<=`,`>`, and `>=` operators.
59
+
60
+
* [SE-0333][]:
61
+
62
+
It is now possible to use the `withMemoryRebound<T>()` method on raw memory,
63
+
that is `UnsafeRawPointer` , `UnsafeRawBufferPointer` and their mutable
64
+
counterparts. Additionally, we clarified the semantics of
65
+
`withMemoryRebound<T>()` when used on typed memory (`UnsafePointer<Pointee>`,
66
+
`UnsafeBufferPointer<Pointee>` and their mutable counterparts). Whereas
67
+
`Pointee` and `T` were previously required to have the same stride, you can
68
+
now rebind in cases where `Pointee` is an aggregate of `T` or vice-versa. For
69
+
example, given an `UnsafeMutableBufferPointer<CGPoint>`, you can now use
70
+
`withMemoryRebound` to operate temporarily on a
71
+
`UnsafeMutableBufferPointer<CGFloat>`, because `CGPoint` is an aggregate of
72
+
`CGFloat`.
73
+
8
74
* [SE-0352][]:
9
75
10
76
It's now possible to call a generic function with a value of protocoltype
@@ -128,7 +194,7 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
128
194
129
195
Distributed actors provide stronger isolation guarantees than "local" actors, and enable additional checks to be made on return types and parameters of distributed methods, e.g. checking if they conform to `Codable`. Distributed methods can be called on "remote" references of distributed actors, turning those invocations into remote procedure calls, by means of pluggable and user extensible distributed actor system implementations.
130
196
131
-
Swift does not provide any specific distributed actor system by itself, however, packages in the ecosystem fulfil the role of providing those implementations.
197
+
Swift does not provide any specific distributed actor system by itself, however, packages in the ecosystem fulfill the role of providing those implementations.
0 commit comments