Skip to content

Commit 0c178cc

Browse files
authored
Merge pull request #1541 from glessard/with-memory-rebound
[SE-0333] Mark as implemented
2 parents d515d17 + a21b88a commit 0c178cc

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

proposals/0333-with-memory-rebound.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@
33
* Proposal: [SE-0333](0333-with-memory-rebound.md)
44
* Authors: [Guillaume Lessard](https://github.com/glessard), [Andrew Trick](https://github.com/atrick)
55
* Review Manager: [Ben Cohen](https://github.com/airspeedswift)
6-
* Status: **Awaiting implementation**
6+
* Status: **Implemented (Swift 5.7)**
77
* 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)
99
* Bugs: [SR-11082](https://bugs.swift.org/browse/SR-11082), [SR-11087](https://bugs.swift.org/browse/SR-11087)
1010

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-
1411
## Introduction
1512

1613
The function `withMemoryRebound(to:capacity:_ body:)`
1714
executes a closure while temporarily binding a range of memory to a different type than the callee is bound to.
1815
We propose to lift some notable limitations of `withMemoryRebound` and enable rebinding to a larger set of types,
1916
as well as rebinding the memory pointed to by raw memory pointers and buffers.
2017

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)
2219

2320
## Motivation
2421

@@ -263,8 +260,6 @@ extension UnsafeMutableRawBufferPointer {
263260

264261
## Detailed design
265262

266-
Note: please see the [draft PR][draft-pr] to visualize the proposed changes rather than the proposed final state.
267-
268263
```swift
269264
extension UnsafePointer {
270265
/// Executes the given closure while temporarily binding memory to

0 commit comments

Comments
 (0)