lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is gcc able to handle anonymous functions?


From: Hans Aberg
Subject: Re: Is gcc able to handle anonymous functions?
Date: Wed, 4 Jul 2012 20:58:38 +0200

On 4 Jul 2012, at 09:35, Marc Hohl wrote:

> Alternatively, I have a scheme function returning a boolean. This function has
> to be called from inside some c++-routines, but this doesn't work yet (see 
> below).
...
> I'll have a look in the train today and write you a more detailed response.  
> In the meantime, ask the devel list if the gcc compiler can handle the types 
> of anonymous functions specified here:
> 
> http://en.wikipedia.org/wiki/Anonymous_function#C.2B.2B

GCC 4.5 and later, see "lambda" here:
  http://gcc.gnu.org/projects/cxx0x.html

But it will take some time before all compilers can handle this. For example, 
those that are provided by Xcode on Mac OS X do not, except for the latest 
preview, which only works on 10.7 and later.

Hans





reply via email to

[Prev in Thread] Current Thread [Next in Thread]