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 22:01:51 +0100 (WET DST)

On Fri, 24 Aug 2001, Raimar Falke wrote:
> 
> 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.

Yes. Unfortunately it introduces new problems. Most GC's are dumb so
you must set all pointers that point to a piece of mem to NULL so the
GC can see that the memory isn't used anymore. GC's are also often slow
when doing the garbage collecting step. I should know about that as a
former LISP programmer :-)
Sure its easy to use. But it isn't perfect.

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





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