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

[Freeciv-Dev] Re: (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] Re: (PR#7075) break and continue in iterators
From: "Jason Short" <jshort@xxxxxxxxxxxxxx>
Date: Tue, 9 Dec 2003 09:43:28 -0800
Reply-to: rt@xxxxxxxxxxx

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

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7075 >
>
> I wrote:
>
>> I get the distinct feeling break; and continue; don't work as
>> they used to inside unit list iterators. I'll be using goto...
>
> Argh, I was talking about iterate_outward. I'm not sure break;
> works inside the unit list iterator either.

Using goto within the iterators is strongly discouraged.  If there are
bugs with the use of break/continue they should be fixed.

jason





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