Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] (PR#7075) break and continue in iterators
Home

[Freeciv-Dev] (PR#7075) break and continue in iterators

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: a-l@xxxxxxx
Subject: [Freeciv-Dev] (PR#7075) break and continue in iterators
From: "Marcelo Burda" <mburda@xxxxxxxxx>
Date: Mon, 24 May 2004 11:59:33 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7075 >

> [jdorje - Dim. Jan. 11 16:44:54 2004]:
> 
> Anyone want to make a patch so that iterate_outward doesn't have 
> nested loops?
> 
Hi friends,
When i use a iterato i asume it is well done, (no body realy see the doc)
my proposal: for all iterators we define a BREAK macro
as sample
#define iterate_outward_break break
if iterator is a double loop we define it as someting making a error at
compile time and a warnig to coder

best regard
Marcelo


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#7075) break and continue in iterators, Marcelo Burda <=