switch()

Mike Parker aldacron at gmail.com
Sun Feb 16 17:46:04 PST 2014


On 2/17/2014 5:57 AM, Steven Schveighoffer wrote:

>
> This is allowed, because there is no code between the case statements.
> It's the one case where fallthrough is allowed. If you put a statement
> in between the two, it would complain.
>

That hit me this morning when I woke up. It's the reason I got the error 
when I fell through to default.



More information about the Digitalmars-d mailing list