Displaying 1 result from an estimated 1 matches for "_ivar".
Did you mean:
ivar
2012 Oct 02
1
[LLVMdev] Error prone default memory capturing convention of blocks.
...vation:
1) The __weak variables in blocks are very common pattern. So having any implicit default behavior makes thing worse.
2) Some stupid mistakes like:
__weak typeof (self) theSelf = self;
...^ {
theSelf.blabla = ..
....
[self blabla]; // ups, calling self directly is an error
_ivar = … // or implicit call to self.
}
Retain cycles are very hard to find. I am not saying about trivial ones, that compiler can find, or the Leaks tool. Recently I have 3 retain cycles in my program, no one appeared in Leaks. So the main point is prevent such errors at first place, not to rely on th...