Boost logo

Boost :

Subject: Re: [boost] request for interest in a garbage collection library
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-04-30 17:04:44


David Abrahams skrev:

> The best we could come up with in general was, "do everything exactly
> the same way you were doing it before GC came along," at which point the
> only benefit of GC seems to be that it may keep a program that leaks
> from running out of memory as soon as it would have otherwise. That's a
> pretty marginal benefit, it seems to me.

Well, as Herb Sutter puts it: GC is the only thing that makes .Net go
faster. So GC is certainly interesting from the point of view that it
can enable faster memory operations.

As for the leaking of resources, then there is no other way
that each class documents that it it's destructor must be called
to reclaim resources. Perhaps a base class is the best way to advertise
this. Just like in .Net classes implement Disposable.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk