C ++ 0x Lambda Support in GCC for iPhone

Can someone tell me if there will be supported C ++ GCC lambda expressions for iPhone in the future?

Obviously, Apple has special โ€œblockโ€ support, so I thought what could this ultimately mean in terms of portable C ++ 0x code on the iPhone platform?

+4
source share
2 answers

If all Apple engineers suddenly and simultaneously did not enter a vegetative state that requires adult diapers and a 24-hour nurse, yes, it will be supported in the future.

Typically, compiler makers can jump in the gun and add pending functions in their own way. This never stopped them from the final adoption of new standards. In the case of code blocks, the syntax is orthogonal to C ++ 1x lambdas, perhaps intentionally so that there is no conflict when they accept the standard.

(Of course, I could be wrong. :-)

+2
source

I agree that Apple and C ++ - 0x lambdas blocks are syntactically so different that Apple cannot implement lambdas. The potentially sticky part can parse lambda capture and the syntax of sending objective-C together in Objective-C ++ 0X ;-). I think that at least GCC thought about it when the lambdas came in, but I donโ€™t think this combo really hit hard to solve the problems. Time will tell.

0
source

Source: https://habr.com/ru/post/1315773/


All Articles