effect of a label on following block
div0
div0 at sourceforge.net
Mon Nov 15 11:16:31 PST 2010
On 15/11/2010 16:45, Ellery Newcomer wrote:
> poking around a little more and I really don't know what's going on.
>
> fun piece of trivia though: while loops get rewritten to for loops, so
>
> for(;;) l1 {
> int v;
> }
> v = 4;
>
> exhibits the same behavior as the while loop.
>
> do loops seem to do the same thing as the if statement
Eugh, that's fugly.
Labels shouldn't be allowed between keyword statements and their blocks,
it makes no sense in any circumstance.
--
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
More information about the Digitalmars-d-learn
mailing list