首页 > 其他 > 详细

什么时候block 是放在全局区里面的?

时间:2015-05-07 23:32:15      阅读:320      评论:0      收藏:0      [点我收藏+]

 When a Block literal is written where there are global variables
 When the syntax in a Block literal doesn’t use any automatic variables
to be captured
In these cases, the Block will be a _NSConcreteGlobalBlock class object and is stored
in the data section. Any Block created by another kind of Block literal will be an object of
the _NSConcreteStackBlock class,and be stored on the stack.

什么时候block 是放在全局区里面的?

原文:http://www.cnblogs.com/studyNT/p/4486255.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!