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: Kevin Brown <kevin@xxxxxxxxxxxxxx>
Cc: Trent Piepho <xyzzy@xxxxxxxxxxxxx>, rf13@xxxxxxxxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Fri, 24 Aug 2001 01:44:26 +0200

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.

> But I don't imagine anyone is interested in rewriting Freeciv in
> C++.  :-)

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
YOW!!!  I am having fun!!!


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