Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand
Home

[Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gaute B Strokkenes <gs234@xxxxxxxxx>
Cc: Kevin Brown <kevin@xxxxxxxxxxxxxx>, Trent Piepho <xyzzy@xxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Aug 2001 10:01:34 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Fri, Aug 24, 2001 at 01:44:26AM +0200, Gaute B Strokkenes wrote:
> On Tue, 21 Aug 2001, kevin@xxxxxxxxxxxxxx wrote:
> > The scary thing is that this is a very strong justification for
> > using C++, with its automatic constructors and destructors.
> 
> AFAIK constructors and destructors do not solve the dangling pointer
> problem.  That is, if you do 
> 
>   delete foo;
> 
> you do not automagically destroy all pointers to foo.

Yes. The solution is garbage collection. There are some for C++ but I
have never seen or used one. Java made it clear how easy for the
programmer this can be.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Despite all the medical advances of the 20th century, the mortality 
  rate remains unchanged at 1 death per person."


[Prev in Thread] Current Thread [Next in Thread]