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: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Fri, 24 Aug 2001 21:51:58 +0100 (WET DST)

On Fri, 24 Aug 2001, 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.

It even introduces new problems. I still remember when i once used
'delete array' instead of 'delete [] array' by mistake.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa



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