[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 >
On Mon, May 24, 2004 at 11:59:33AM -0700, Marcelo Burda wrote:
>
> <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
This is quite ugly. I'm sure we can denest all iterator loops. Even a
goto is nicer than a break macro in my eyes.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"There are three ways to get something done. Do it yourself, hire someone
to do it for you or forbid your kids to do it."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] Re: (PR#7075) break and continue in iterators,
Raimar Falke <=
|
|