May 03 Learn » Re: Goto skipping declarations | |||
|---|---|---|---|
| |||
It has to be a bug, and taking it a step further shows that. If... | |||
May 03 Learn » Goto skipping declarations | |||
|---|---|---|---|
| |||
...x;
goto Label;
int y;
Label:
int z;
}
void f2(){ //compiles fine
int x;
goto... | |||
April 29 Issues » [Issue 24528] New: Add offending member to "no size because of forward reference" error | |||
|---|---|---|---|
| |||
...All paths that lead to the error (`goto LFail` or the "fallthrough" before `Lfail`) should... | |||
April 22 DIP Ideas » Re: Improvements to switch | |||
|---|---|---|---|
| |||
...the unusual scoping rules, the ability to goto in and out of it, the ability... | |||
April 19 DIP Ideas » Re: Improvements to switch | |||
|---|---|---|---|
| |||
...to understand and maybe even implement. Conceptually, `goto default` and other constructs that transfer execution... | |||
April 19 DIP Ideas » Re: Improvements to switch | |||
|---|---|---|---|
| |||
...your example I don't understand why `goto default` wouldn't have the same type... | |||
April 19 DIP Ideas » Re: Improvements to switch | |||
|---|---|---|---|
| |||
...negative int" : goto default;
default -> "some other int";
}
```
This will work _if_ `goto default` is... | |||
April 18 General » Re: Memory safe in D | |||
|---|---|---|---|
| |||
...you tried to access it. If you goto past a variable, that is a compiler... | |||
April 11 DIP Ideas » Re: Type state analysis | |||
|---|---|---|---|
| |||
...it as well, well... Fun. And like goto's we don't allow you to... | |||
March 30 General » Re: Memory safe in D | |||
|---|---|---|---|
| |||
...before it was initialized
p = new<int>;
}
```
Goto skipping initialization is already disallowed in D.
| |||
Copyright © 1999-2021 by the D Language Foundation