Nested-Functions

Jonathan Wakely jwakely.gcc@gmail.com
Thu Jan 4 09:32:00 GMT 2018


On 4 January 2018 at 00:54, nick wrote:
>
>
> On 2018-01-03 07:52 PM, Austin T wrote:
>>  By nested functions, I'm assuming that means raw function definitions that are valid inside a temporary scope of a function. If I'm not mistaken, they're equivalent to C++ lambda expressions but just written in a syntactic sugar syntax.
>>
>> Austin
>>
>
> That's the same thing actually if your going to name your lambda. What are the advantages
> of this newer syntax or feature. Do you have any examples?

Read the docs. It's not newer, it's much older than C++ lambdas, but
is only supported in GNU C.



More information about the Gcc mailing list