Skip to content

Instantly share code, notes, and snippets.

@stigi
Created April 19, 2012 16:18
Show Gist options
  • Select an option

  • Save stigi/2422071 to your computer and use it in GitHub Desktop.

Select an option

Save stigi/2422071 to your computer and use it in GitHub Desktop.
Function scope using Objective-C blocks
// is there a way to do this with inlining "bla" ?
typedef void(^bla)(void);
bla (^finish)(NSString *) = ^(NSString *what) {
return ^{
NSLog(@"Say %@", what);
};
};
@stigi
Copy link
Author

stigi commented Apr 19, 2012

it won't be function scope, I know... but still.

@stigi
Copy link
Author

stigi commented Apr 19, 2012

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