Created
April 19, 2012 16:18
-
-
Save stigi/2422071 to your computer and use it in GitHub Desktop.
Function scope using Objective-C blocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // is there a way to do this with inlining "bla" ? | |
| typedef void(^bla)(void); | |
| bla (^finish)(NSString *) = ^(NSString *what) { | |
| return ^{ | |
| NSLog(@"Say %@", what); | |
| }; | |
| }; |
Author
Author
or will it?... blocks. got me all confused...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it won't be function scope, I know... but still.