[cfe-dev] Blocks vs. C++ lambda's?

Boris Dušek boris.dusek at gmail.com
Thu Apr 30 05:36:59 PDT 2009


Hi,

I learned about the blocks feature Apple is implementing as an extension to
C. After looking at it briefly, I concluded it's basically the same thing as
C++(0x) lambdas. But there should be a difference since if not, (I guess) it
would make sense to just adopt the C++ lambda syntax in C and Obj-C to
achieve the goal. So could someone please point out what blocks provide that
C++ lambdas do not (and vice versa)?

Thanks,
Boris Dušek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090430/19439c86/attachment.html>


More information about the cfe-dev mailing list