what is the difference between strong (in LLVM) and retain( in GCC)?

為{幸葍}努か 提交于 2019-12-29 06:58:11

问题


what is the difference between strong (in LLVM compiler) and retain( in GCC compiler) ?


回答1:


strong is a new feature in iOS 5 Automatic Reference Counting (ARC) which behave the same as retain in iOS 4. Referenced Article.

Also, check out this other SO question: @property definitions with ARC: strong or retain?




回答2:


strong is a new keyword that was introduced along with arc (automatic reference counting). There are a bazillion articles about it if you search google, including this one http://cupsofcocoa.com/2011/11/27/the-jungle-part-4-automatic-reference-counting/



来源:https://stackoverflow.com/questions/10299200/what-is-the-difference-between-strong-in-llvm-and-retain-in-gcc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!