1.__block对象在block中是可以被修改.重新赋值的. 2.__block对象在block中不会被block强引用一次,从而不会出现循环引用问题. API Reference对__weak变量修饰符有如下几处解释: __weak specifies a reference that does not keep the referenced object alive. A weak reference is set to nil when there are no strong refer…
Understanding the managed heap Another common problem faced by many Unity developers is the unexpected expansion of the managed heap. In Unity, the managed heap expands much more readily than it shrinks. Furthermore, Unity’s garbage collection stra…
python中 __name__及__main()__的妙处 #hello.pydef sayHello(): str="hello" print(str); if __name__ == "__main__": print ('This is main of module "hello.py"') sayHello() python作为一种脚本语言,我们用python写的各个module都可以包含以上那么一个累死c中的main函数,只不过pyt…