File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,38 @@ Note: This is in reverse chronological order, so newer entries are added to the
3
3
Swift 3.0
4
4
---------
5
5
6
+ * [ SE-125)(https://github.com/apple/swift-evolution/blob/master/proposals/0125-remove-nonobjectivecbase.md )
7
+
8
+ The functions ` isUniquelyReferenced() ` and ` isUniquelyReferencedNonObjC() `
9
+ have been removed. The function ` isKnownUniquelyReferenced() ` should be called
10
+ instead. The class ` NonObjectiveCBase ` which classes using
11
+ ` isUniquelyReferenced() ` needed to inherit from was removed.
12
+
13
+ The method ` ManagedBufferPointer.holdsUniqueReference ` was renamed to
14
+ ` ManagedBufferPointer.isUniqueReference ` .
15
+
16
+ ``` swift
17
+ // old
18
+ class SwiftKlazz : NonObjectiveCBase {}
19
+ expectTrue (isUniquelyReferenced (SwiftKlazz ()))
20
+
21
+ var managedPtr : ManagedBufferPointer = ...
22
+ if ! managedPtr.holdsUniqueReference () {
23
+ print (" not unique" )
24
+ }
25
+
26
+
27
+ // new
28
+ class SwiftKlazz {}
29
+ expectTrue (isKnownUniquelyReferenced (SwiftKlazz ()))
30
+
31
+ var managedPtr : ManagedBufferPointer = ...
32
+ if ! managedPtr.isUniqueReference () {
33
+ print (" not unique" )
34
+ }
35
+
36
+ ```
37
+
6
38
* [ SE-124] ( https://github.com/apple/swift-evolution/blob/master/proposals/0124-bitpattern-label-for-int-initializer-objectidentfier.md )
7
39
8
40
The initializers on ` Int ` and ` UInt ` accepting an ` ObjectIdentifier ` now need
You can’t perform that action at this time.
0 commit comments