Created
July 15, 2017 07:32
-
-
Save ezura/24687adf090029bdd60a27a5b8ca5f0d to your computer and use it in GitHub Desktop.
`unowned(unsafe)`、`unowned(safe)` があることに気づいた(゚ω゚)
予約語リストに加えた! #swift #CodePiece
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
// unowned = unowned(safe) | |
unowned(safe) var safe: AnyObject | |
{ [unowned(safe) a] in /* ... */ } | |
// like `__unsafe_unretained` | |
unowned(unsafe) var unsafe: AnyObject | |
{ [unowned(unsafe) a] in /* ... */ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://qiita.com/ezura/items/36af3d2f1456b6482ff0#unownedsafe
http://qiita.com/ezura/items/36af3d2f1456b6482ff0#unownedunsafe