goto a no-go?

monarch_dodra monarchdodra at gmail.com
Tue Oct 1 12:50:44 PDT 2013


On Tuesday, 1 October 2013 at 19:45:20 UTC, monarch_dodra wrote:
> On Tuesday, 1 October 2013 at 17:15:34 UTC, Ali Çehreli wrote:
>> Nobody mentioned the use of goto with switch-case.
>>
>>  http://ddili.org/ders/d.en/switch_case.html
>>
>> goto can appear in three ways under case sections:
>>
>> * 'goto case' causes the execution to continue to the next 
>> case.
>> [SNIP]
>> Ali
>
> Hum... What is the difference between "goto case" and 
> "continue" in a switch statement?

Never-mind, I seem to have been confused. I thought "continue" 
was the keyword to use for explicit fall-through.

Carry on then.


More information about the Digitalmars-d mailing list