Re: Is this a bug with goto?

2010-04-17 Thread Jerry Quinn
Andrei Alexandrescu Wrote: > (Hi Jerry! Glad to see you're ramping up participation lately.) Yes, > that's a bug. There are many other bugs related to jumps, including in > switch statements. http://d.puremagic.com/issues/show_bug.cgi?id=4101 cheers, Jerry

Re: Is this a bug with goto?

2010-04-17 Thread Kagamin
Andrei Alexandrescu Wrote: > (Hi Jerry! Glad to see you're ramping up participation lately.) Yes, > that's a bug. There are many other bugs related to jumps, including in > switch statements. > That's why we need new properly scoped switch syntax, lol.

Re: Is this a bug with goto?

2010-04-17 Thread Andrei Alexandrescu
On 04/17/2010 11:11 AM, Jerry Quinn wrote: In the spec it says that it's illegal to skip an initialization using goto. Unless I'm mistaken, the code below does that for b, s, and c. However, it compiles without complaint. So, should the compiler be complaining, or is the text about goto real

Is this a bug with goto?

2010-04-17 Thread Jerry Quinn
In the spec it says that it's illegal to skip an initialization using goto. Unless I'm mistaken, the code below does that for b, s, and c. However, it compiles without complaint. So, should the compiler be complaining, or is the text about goto really saying that behavior is undefined. Obvio