I thought it might be too convenient.  Treating continue in a switch statement 
like a continue in a nested loop (the inner loop/switch is 'continued', without 
effecting the outer loop) would probably break a lot of things.

"Nelson, Jim" <[email protected]> wrote:

>continue can be used when a switch statement is embedded inside a loop.
>
>-- Jim
>
>On Thu, Jan 24, 2013 at 1:20 PM, Sam Wilson <[email protected]>
>wrote:
>Why not something like continue?
>
>"Nelson, Jim" <[email protected]> wrote:
>Apparently this is possible in C# with the "goto case <label>" syntax:
>
>http://stackoverflow.com/questions/174155/switch-statement-fallthrough-in-c
>
>Doesn't work in Vala, however.
>
>I'm not advocating for switch-case fallthrough, but C# was able to
>provide it without reserving another keyword.
>
>-- Jim
>
>On Thu, Jan 24, 2013 at 11:34 AM, Flemming Richter Mikkelsen
><[email protected]> wrote:
>Hello.
>
>I am new to this list. Please let me know if I post in the wrong place.
>
>
>A long time ago I tried case fallthrough in Vala.
>It didn't work as in C, so I wrote that special code in C and the rest
>in
>Vala.
>
>In stead of forbidding case fallthrough all together, I believe a good
>compromise would be to implement a new keyword, nobreak, solely for
>this
>purpose.
>
>Any ideas?
>
>
>vala-list mailing list
>[email protected]
>https://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to