C++0x now with lambda and closure
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Thu Apr 10 13:53:36 PDT 2008
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.
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d-announce
mailing list