February 18, 2004 Documentation error | ||||
---|---|---|---|---|
| ||||
There appears to be a documentation error at http://www.digitalmars.com/d statement.html#block. void func3() { { int x; } { int x; // illegal, x is multiply defined in function scope } } This compiles fine, and makes no sense as the next example in the docs contradicts it. Anyone want to clarify? -- - Mik Mifflin |
February 18, 2004 Re: Documentation error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mik Mifflin | Mik Mifflin wrote:
[...]
> { int x; // illegal, x is multiply defined in function scope
[...]
This is reported already ... however it does not matter to report it more than once. :-)
So long.
|
Copyright © 1999-2021 by the D Language Foundation