C++0x now with lambda and closure

Sean Kelly sean at invisibleduck.org
Fri Apr 11 00:39:55 PDT 2008


== Quote from Bruno Medeiros (brunodomedeiros+spam at com.gmail)'s article
> guslay wrote:
> > For those keeping track...
> >
> > http://herbsutter.spaces.live.com/
> >
> > Crazy syntax, at least it looks better than boost.
> >
> What happens to the outer variables? Is a copy of them created for each
> evaluated closure object? Or does there exist only a single instance of
> each, as in D?
> And how is the closure object destroyed, since there is no GC? (does one
> have to assign it to a variable, to later delete it?)
> I tried to read the proposal to find an answer, but I couldn't quickly
> grasp it.



More information about the Digitalmars-d-announce mailing list