[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
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, (continued)
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Raimar Falke, 2001/08/21
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Trent Piepho, 2001/08/21
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Kevin Brown, 2001/08/22
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Erik Sigra, 2001/08/22
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Raimar Falke, 2001/08/22
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Gaute B Strokkenes, 2001/08/24
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Raimar Falke, 2001/08/24
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Vasco Alexandre Da Silva Costa, 2001/08/24
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Alan Schmitt, 2001/08/25
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Falk Hueffner, 2001/08/25
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand,
Vasco Alexandre Da Silva Costa <=
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Trent Piepho, 2001/08/20
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Gaute B Strokkenes, 2001/08/21
|
|