4 ms·
...if you want "real" higher-order programming in "C"...
by dchest 14y ago
...if you want "real" higher-order programming in "C"...
- SoftwareMaven 14y agoYou'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]