Skip to content

Instantly share code, notes, and snippets.

@ezura
Created July 15, 2017 07:32
Show Gist options
  • Save ezura/24687adf090029bdd60a27a5b8ca5f0d to your computer and use it in GitHub Desktop.
Save ezura/24687adf090029bdd60a27a5b8ca5f0d to your computer and use it in GitHub Desktop.
`unowned(unsafe)`、`unowned(safe)` があることに気づいた(゚ω゚) 予約語リストに加えた! #swift #CodePiece
// 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