Sure. Either option is fine with me.

Dov

2008/7/1 Ed Schouten <[EMAIL PROTECTED]>:

> * Dov Grobgeld <[EMAIL PROTECTED]> wrote:
> > A small syntax enhancement borrowed from Perl that I would like to see in
> > vala is labeled loops, that can be referenced in continue and break
> > statements. Here is an example:
> >
> >
> > pixels:
> > while(foo) {
> >     for (int i=0; i<1000; i++) {
> >         if (a)
> >             break pixels;
> >         if (b)
> >             continue pixels;
> >     }
> > }
> >
> > See the "last" and "next" statements of perl for a larger example.
> >
> > Thanks!
> > Dov
>
> Why not do it sh(1) style? (continue 2, break 2).
>
> --
>  Ed Schouten <[EMAIL PROTECTED]>
>  WWW: http://80386.nl/
>
_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to