[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]
<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
|
|