3 ms·
You're just not looking at the problem objectively... Seriously, though, is there a reason the Objective C blocks wouldn't work in C, just substituting functio
by SoftwareMaven 14y ago
You're just not looking at the problem objectively...
Seriously, though, is there a reason the Objective C blocks wouldn't work in C, just substituting functions for methods?
- chc 14y agoThe blocks are already supported in plain C mode as long as you enable the Clang extension. You just use, for example, block_Copy(aBlock) instead of [aBlock copy]. Apple framed it as a C feature in its proposal for standardization (because Objective-C doesn't have a real standard AFAIK).
- deleted 14y ago[deleted]