Talk:Blocks (C language extension): Difference between revisions

Content deleted Content added
Devnevyn (talk | contribs)
No edit summary
Devnevyn (talk | contribs)
No edit summary
Line 2:
 
This page should not mention Grand Central Dispatch more than mentioning that it optionally uses blocks. The many GCD references only serve to further confuse the two. --[[User:Devnevyn|Devnevyn]] ([[User talk:Devnevyn|talk]]) 08:38, 17 September 2009 (UTC)
 
 
Also, what does this mean?
 
Unlike closures in pure functional languages, blocks do not capture all of their surrounding state;
they only capture copies of their surrounding stack variables.[5]
 
What state is NOT captured? Globals are captured by reference, and all locals are captured also by reference in a stack block, by copy for a non-__block variable in a heap block, and by owning reference in a __block variable in a heap block. Unless I'm missing something, the statement is wrong, so please elaborate. --[[User:Devnevyn|Devnevyn]] ([[User talk:Devnevyn|talk]]) 08:52, 17 September 2009 (UTC)