Block sample (closure)
void (^printMessage)(void) = ^(void){NSLog (@"Programming is fun."); };To the left of the equal sign we specify that printMessage is a pointer to a block that takes no arguments and returns no value. Note that the assignment statement is terminated by a semicolon.