Created
May 30, 2015 15:48
-
-
Save Ben-G/63f3f82340dcb38f292c to your computer and use it in GitHub Desktop.
isUniquelyReferencedNonObjC, simple example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class A { var x = "a" } | |
var a:A = A() | |
isUniquelyReferencedNonObjC(&a) | |
var b = a | |
isUniquelyReferencedNonObjC(&a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As per the doc this is only to check is it's NonObjC reference, right? So, then this should be checks with
if
.Or maybe I'm just not getting it entirely right. Hence your explanation would be helpful.