User: Password:
|
|
Subscribe / Log in / New account

Blocks in C, not C++

Blocks in C, not C++

Posted Sep 16, 2009 22:46 UTC (Wed) by ncm (subscriber, #165)
In reply to: Blocks in C, not C++ by ncm
Parent article: Tornado and Grand Central Dispatch: a quick look

I will note further that the Lambda feature in C++ has different syntax from Blocks, and there will be strong pressure, particularly from implementers, on the C committee to match the C++ Lambda syntax, i.e. using "[]" where Apple's Blocks uses "^". (Ironically, "[]" looks typographically more like a block, and "^" looks more like a lambda.) I expect Apple to support both syntaxes in the end.


(Log in to post comments)

Blocks in C, not C++

Posted Sep 17, 2009 1:29 UTC (Thu) by busterb (subscriber, #560) [Link]

But [] is used by objective C to call methods, so Apple is likely to not support this, at least not OS
X's most-supported language.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds