[cfe-dev] blocks and lambdas

Chris Lattner clattner at apple.com
Mon Feb 7 12:26:18 PST 2011


On Feb 7, 2011, at 11:18 AM, James Gregurich wrote:

> hi,
> 
> What is to be the relationship between Apple's blocks standard and C++0x lambda functions? Are these things features going to be integrated or interchangeable in clang?

They provide similar functionality, but have many differences.  Clang will implement both as independent language constructs.  Library code that wants to use both should be able to handle them through std::function (for example).

-Chris



More information about the cfe-dev mailing list