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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -