GC and dtors ~ a different approach?

Bruno Medeiros brunodomedeirosATgmail at SPAM.com
Thu Apr 13 09:48:11 PDT 2006


Regan Heath wrote:
> On Mon, 10 Apr 2006 13:33:56 +0100, Bruno Medeiros 
> <brunodomedeirosATgmail at SPAM.com> wrote:
>> All of those pros you mention are valid. But you'd have one serious con:
>> * Any class which required cleanup would have to be manually memory 
>> managed.
> 
> Not memory managed, surely.. the memory will still be collected by the 
> GC, all that changes is that the dtor is not invoked when that happens.. 
> or at least that is how I understood Kris's proposal.
> 
> Regan
> 

Kris clearly mentioned that a class with a dtor (i.e. a class needing 
cleanup) being collected by the GC would be an abnormal situation. 
(which could, or not, be detected by the runtime.)

-- 
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list