Nested-Functions

2018-01-03 Thread Alexsandr Yvarov
Why would dont add it at GNU G++?


gcc-6-20180103 is now available

2018-01-03 Thread gccadmin
Snapshot gcc-6-20180103 is now available on
  ftp://gcc.gnu.org/pub/gcc/snapshots/6-20180103/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 6 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-6-branch 
revision 256216

You'll find:

 gcc-6-20180103.tar.xzComplete GCC

  SHA256=1fe95b385cb5dfda90e6630050150ac254144cbb050f2fcb62c0a2046d18263b
  SHA1=dee1744e44afbc513b23be43042aac57d30b7be9

Diffs from 6-20171227 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-6
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.


Re: Nested-Functions

2018-01-03 Thread Jonathan Wakely
On 3 January 2018 at 21:13, Alexsandr Yvarov wrote:
> Why would dont add it at GNU G++?

Aren't C++ lambda expressions more powerful and flexible?


Re: Nested-Functions

2018-01-03 Thread nick


On 2018-01-03 06:05 PM, Jonathan Wakely wrote:
> On 3 January 2018 at 21:13, Alexsandr Yvarov wrote:
>> Why would dont add it at GNU G++?
> 
> Aren't C++ lambda expressions more powerful and flexible?
> 

It depends actually, lambdas are consider the  C++ standard of this. I am 
wondering what
you mean Alexsandir and what is your use case as lambdas tryto solve this for 
most use 
cases of antonymous and nested functions. What are the requirements if any that 
lambdas
don't meant and have you looked at the C++14/17 standard for them if your 
compiler
supports it.

What do you mean by nested functions actually as that means a lot 
of things in compiler or language development. 

Cheers,
Nick


Re: Nested-Functions

2018-01-03 Thread Austin T
 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

On Jan 3, 2018 2:44 PM, "nick"  wrote:



On 2018-01-03 06:05 PM, Jonathan Wakely wrote:
> On 3 January 2018 at 21:13, Alexsandr Yvarov wrote:
>> Why would dont add it at GNU G++?
>
> Aren't C++ lambda expressions more powerful and flexible?
>

It depends actually, lambdas are consider the  C++ standard of this. I am
wondering what
you mean Alexsandir and what is your use case as lambdas tryto solve this
for most use
cases of antonymous and nested functions. What are the requirements if any
that lambdas
don't meant and have you looked at the C++14/17 standard for them if your
compiler
supports it.

What do you mean by nested functions actually as that means a lot
of things in compiler or language development.

Cheers,
Nick


Re: Nested-Functions

2018-01-03 Thread nick


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?

Nick
> On Jan 3, 2018 2:44 PM, "nick"  > wrote:
> 
> 
> 
> On 2018-01-03 06:05 PM, Jonathan Wakely wrote:
> > On 3 January 2018 at 21:13, Alexsandr Yvarov wrote:
> >> Why would dont add it at GNU G++?
> >
> > Aren't C++ lambda expressions more powerful and flexible?
> >
> 
> It depends actually, lambdas are consider the  C++ standard of this. I am 
> wondering what
> you mean Alexsandir and what is your use case as lambdas tryto solve this 
> for most use
> cases of antonymous and nested functions. What are the requirements if 
> any that lambdas
> don't meant and have you looked at the C++14/17 standard for them if your 
> compiler
> supports it.
> 
> What do you mean by nested functions actually as that means a lot
> of things in compiler or language development.
> 
> Cheers,
> Nick
> 
>