objective c - Why can .c files contain blocks? -
I think the block is a purpose-built feature. Recently I am adding block to some source file and I It seems that it just compile properly.
I *. Confused for a C file, can the compiler consider it as a pure C file, why block blocks can allow it?
In fact the introduction of rubbed blocks
, Objective-C, C ++, and Objective-C ++
as you can read here.
Of course, using blocks makes your source incompatible with the C11 standard but, you know, as long as your code is for Mac OS X ...
Edit : Blocks are also available in GCC, do not know about it.
Comments
Post a Comment