Switch

9 views
Skip to first unread message

Renato Lenzi

unread,
Apr 22, 2012, 2:33:12 PM4/22/12
to falc...@googlegroups.com
In C# this silly code emulates fall-through, which is normally denied
in that language, using goto statement:


switch(x)
{
case 1: label1: Console.WriteLine(" > 0"); break;
case 2: Console.WriteLine("2");
goto label1; break;
default : Console.WriteLine(" > 2"); break;
}

Is it possibile (legal) to do something similar in Falcon?

Reply all
Reply to author
Forward
0 new messages