Re: [Vala] Request for new keyword "nobreak"



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 <tecywiz121 hotmail com> wrote:
Why not something like continue?

"Nelson, Jim" <jim yorba org> 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 <frm member fsf org> 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
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]