Skip to content

Commit c2caba6

Browse files
authored
Merge pull request #4292 from xwu/swift-3.0-branch
[3.0] Update CHANGELOG.md for SE-0101 and SE-0136
2 parents 7ed8a07 + 035e896 commit c2caba6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ Note: This is in reverse chronological order, so newer entries are added to the
33
Swift 3.0
44
---------
55

6+
* [SE-0136](https://github.com/apple/swift-evolution/blob/master/proposals/0136-memory-layout-of-values.md) and [SE-0101](https://github.com/apple/swift-evolution/blob/master/proposals/0101-standardizing-sizeof-naming.md)
7+
8+
The functions `sizeof()`, `strideof()`, and `alignof()` have been removed.
9+
Instead, these memory layout properties for a type `T` are now spelled
10+
`MemoryLayout<T>.size`, `MemoryLayout<T>.stride`, and
11+
`MemoryLayout<T>.alignment`, respectively.
12+
13+
The functions `sizeofValue()`, `strideofValue()`, and `alignofValue()` have
14+
been renamed `MemoryLayout.size(ofValue:)`, `MemoryLayout.stride(ofValue:)`,
15+
and `MemoryLayout.alignment(ofValue:)`.
16+
617
* [SE-0128](https://github.com/apple/swift-evolution/blob/master/proposals/0128-unicodescalar-failable-initializer.md)
718

819
Some UnicodeScalar initializers (ones that are non-failable) now return an Optional,

0 commit comments

Comments
 (0)