This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Blocks in g++ ?
Per Bothner wrote:
>
> Closures are objects. (You can simulate objects using closures and
> vice versa, fairly painlessly.) The problems is how to reclaim the
> memory used by a closure if you are passing around a reference to
> a closure object.
Why is this a problem? That is: If closures are objects, why is memory
management more difficult for closures than it is for any other kind of
object? I mean, C and C++ have had pointers since the year dot. Every
programmer has learned how to manage memory. What's different about
closures?
--
Ross Smith <ross.s@ihug.co.nz> The Internet Group, Auckland, New Zealand
========================================================================
I know you're desperate, I really sympathise
I see the morbid horror flicker in your eyes
But rest assured I'm gonna help to ease your pain
I'm gonna put a thousand tiny implants in your brain [Motorhead]