Blocks in Objective-C

Apple is adding blocks (a.k.a. closures) to Objective-C (via Ian Baird): From a technical perspective, blocks fit into C in a couple places: 1) a new declaration type (the caret) which work very much like a magic kind of pointer that can only point to function types. 2) block literals, which capture the computation 3) … Continue reading Blocks in Objective-C