[Vala] Small syntax request labeled loops
- From: "Dov Grobgeld" <dov grobgeld gmail com>
- To: vala-list gnome org
- Subject: [Vala] Small syntax request labeled loops
- Date: Mon, 30 Jun 2008 23:30:42 +0300
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
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]