|
3 | 3 | * Proposal: [SE-0333](0333-with-memory-rebound.md)
|
4 | 4 | * Authors: [Guillaume Lessard](https://github.com/glessard), [Andrew Trick](https://github.com/atrick)
|
5 | 5 | * Review Manager: [Ben Cohen](https://github.com/airspeedswift)
|
6 |
| -* Status: **Awaiting implementation** |
| 6 | +* Status: **Implemented (Swift 5.7)** |
7 | 7 | * Decision Notes: [Acceptance](https://forums.swift.org/t/54699)
|
8 |
| -* Implementation: [draft pull request][draft-pr] |
| 8 | +* Implementation: [apple/swift#39529](https://github.com/apple/swift/pull/39529) |
9 | 9 | * Bugs: [SR-11082](https://bugs.swift.org/browse/SR-11082), [SR-11087](https://bugs.swift.org/browse/SR-11087)
|
10 | 10 |
|
11 |
| -[draft-pr]: https://github.com/apple/swift/pull/39529 |
12 |
| -[pitch-thread]: https://forums.swift.org/t/pitch-expand-usability-of-withmemoryrebound/52500 |
13 |
| - |
14 | 11 | ## Introduction
|
15 | 12 |
|
16 | 13 | The function `withMemoryRebound(to:capacity:_ body:)`
|
17 | 14 | executes a closure while temporarily binding a range of memory to a different type than the callee is bound to.
|
18 | 15 | We propose to lift some notable limitations of `withMemoryRebound` and enable rebinding to a larger set of types,
|
19 | 16 | as well as rebinding the memory pointed to by raw memory pointers and buffers.
|
20 | 17 |
|
21 |
| -Swift-evolution threads: [Pitch thread][pitch-thread], [Review thread](https://forums.swift.org/t/53799) |
| 18 | +Swift-evolution threads: [Pitch thread](https://forums.swift.org/t/52500), [Review thread](https://forums.swift.org/t/53799) |
22 | 19 |
|
23 | 20 | ## Motivation
|
24 | 21 |
|
@@ -263,8 +260,6 @@ extension UnsafeMutableRawBufferPointer {
|
263 | 260 |
|
264 | 261 | ## Detailed design
|
265 | 262 |
|
266 |
| -Note: please see the [draft PR][draft-pr] to visualize the proposed changes rather than the proposed final state. |
267 |
| - |
268 | 263 | ```swift
|
269 | 264 | extension UnsafePointer {
|
270 | 265 | /// Executes the given closure while temporarily binding memory to
|
|
0 commit comments