If I try to access the "object variable" with the storage type __block:
@interface { __block float x; }
in the block:
@implementation ... { ... -(void) func: { ^(...) { x = 0; } }
I get a โsave loopโ warning if I donโt create the __block link for myself and use it like:
-(void) func: { __block id s = self; ^(...) { s->x = 0; } }
Why can I declare a variable "__block" in the interface?
source share