Talk:Blocks (C language extension)
Appearance
![]() | Computer science Unassessed Mid‑importance | ||||||||||||||||
|
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. --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. --Devnevyn (talk) 08:52, 17 September 2009 (UTC)