Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: list cleaning
Home

[Freeciv-Dev] Re: list cleaning

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: list cleaning
From: Raimar Falke <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Thu, 29 Jan 2004 11:41:46 +0100

On Tue, Jan 27, 2004 at 08:40:38PM +0000, Per I. Mathisen wrote:
> > Both of these require a very small ammortized overhead - no more than one
> > extra boolean check per loop iteration.So efficiency shouldn't be a
> > concern when compared to the delete-at-end-of-turn mechanism.

> You forgot: Both require accounting to avoid doing deletions while
> inside a nested iterator, and makes necessary a ban on the use of
> goto and return from inside an iterator.

Correct. But you can catch these easy with a script like I provided.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Like the ad says, at 300 dpi you can tell she's wearing a
  swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you
  can tell it's painted on. I suppose at 2400 dpi you can tell
  if the paint is giving her a rash."
    -- Joshua R. Poulson


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