March 25, 2005 Mistake in docs: Block Statement | ||||
---|---|---|---|---|
| ||||
http://www.digitalmars.com/d/statement.html#block says: void func3() { { int x; } { int x; // illegal, x is multiply defined in function scope } } I didn't understand the comment so I tested it, and it seems DMD 0.119 has no problems with it. Should the documentation be updated? Lionello. |
Copyright © 1999-2021 by the D Language Foundation