Clang 的 ARC 支持和周期
Clang 有一个名为 ARC 的新功能。概念看起来很酷。这个功能支持检测周期吗?
Clang has new feature called ARC. Concept looks cool. Is this feature support detecting cycles?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ARC 支持弱引用。如果一个循环中的引用之一是弱引用,这将允许该循环被正确释放。请参阅 Apple 的 Chris Lattner 的这篇文章:
ARC has support for weak references. If one of the references in a cycle is a weak reference, this will allow the cycle to be properly released. See this post by Chris Lattner from Apple:
不... ARC 仅用于自动保留和释放 - 没有别的...我很确定 Instruments 有一个用于此目的的工具 - 至少在 4.1/4.2 中
Nope... ARC is only for automating retain and release - nothing else... I'm pretty sure Instruments has a tool for this - at least in 4.1/4.2