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

Content deleted Content added
Devnevyn (talk | contribs)
No edit summary
Rationale for my edits
Line 10:
 
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)
 
I agree with both of these criticisms, I've removed the latter passage entirely and clarified the former. I've removed some non-sequiturs ("Blocks introduce a derived type into the language." Fabulous!) I also removed the misleading reference to C++ lambdas. C++ lambdas differ from blocks in far more than syntax. A comparison would be appropriate, but it must compare more than just the superficial. This article still needs a rewrite/expansion, but it's now more accurate and less misleading. -[[Special:Contributions/76.254.63.45|76.254.63.45]] ([[User talk:76.254.63.45|talk]]) 00:21, 25 October 2009 (UTC)