This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Nested-Functions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]