www.digitalmars.com         C & C++   DMDScript  

D - Documentation error

reply Mik Mifflin <mik42 NOadelphiaSPAM.net> writes:
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
Feb 17 2004
parent Manfred Nowak <svv1999 hotmail.com> writes:
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.
Feb 17 2004