On Mon, Feb 06, 2006 at 11:40:10AM -0500, Paul A. Rubin wrote:
> IIRC, MSVC also uses nonstandard scoping of loop indices.  Again, my 
> memory is fuzzy, but I believe that
> 
> for (int i=1; i<10; i++) ...;
> ...
> for (int i=1; i<n; i++) ...;
> 
> should compile correctly in any standard implementation of C/C++, but I 
> think MSVC crabs that the second occurrence of 'int i' is redefining 'i'.

This has ben changed a while ago.

Andre'

Reply via email to