3 ms·
> [...] any free local variables in the closure which are captured by the containing environment must refer to locations on the heap. Objective-C blocks automa
by comex 15y ago
> [...] any free local variables in the closure which are captured by the containing environment must refer to locations on the heap.
Objective-C blocks automatically copy those variables to the heap. (Which is not to say they're not a bunch of compromises.)