Skip to content

Instantly share code, notes, and snippets.

@chiiph

chiiph/gist:4374872

Created Dec 25, 2012
Embed
What would you like to do?
__block int variable = 1;
int anotherVariable = 2;
void (block^)() = ^{
variable++; // actually modifying variable
anotherVariable++; // modifying a copy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.