Jon S Berndt writes:
>
>I remember there was also perfectly good code that broke 
>under MSVC. Is this one fixed:
>
>{
>   for (int i=0;i<5;i++) {
>    // do something
>   }
>
>   for (int i=7;i<13;i++) {
>    // do something else
>   }
>}
>
>The second for loop was causing problems with MSVC because 
>it choked on the for-block-scoped "int i" declaration.
>

AFAIK only in the new 'net' compiler

Note however that AFAIK the following variation
does work in MSVC

{
  {
   for (int i=0;i<5;i++) {
    // do something
   }
  } {
   for (int i=7;i<13;i++) {
    // do something else
   }
 }
}

Norman

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to