Break in switch inside loop [was Re: Loop iterator - example.txt]

Unknown W. Brackets unknown at simplemachines.org
Sun Apr 30 13:03:35 PDT 2006


I think this is why labeling for these constructs was introduced.

-[Unknown]


> Does anyone else see the inconsistency with the break and continue 
> keywords as applied to switch statements within loop constructs?
> 
> switch uses break to leave the switch statement, while continue is still 
> used in the loop context.  I think this should be fixed so that exit 
> leaves the switch statement and break and continue are left for the loop.
> 



More information about the Digitalmars-d mailing list