www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - 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. 
Mar 25 2005