Understanding switch + foreach

Timon Gehr via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 17 14:49:18 PDT 2014


On 04/17/2014 08:04 PM, Matej Nanut wrote:
> The expansion with gotos explains the behaviour nicely! Cool.
>
> The error about fall-through is still missing though?

Good point, this error should probably be triggered. I guess the problem 
is roughly that indeed every case statement in the code is terminated by 
an explicit control flow construct and this is all that is checked for.


More information about the Digitalmars-d-learn mailing list