Norman Vine wrote:
>
> >
> >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
In the new .NET compiler (i.e. version 7) it's fixed, the old one (MSVC
6) has that problem.
> 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
> }
> }
> }
Yes, it does. But it's sort of ugly. But not as ugly as a #define I've
seen once that fixes that problem, too.
CU,
Christian
--
The idea is to die young as late as possible. -- Ashley Montague
Whoever that is/was; (c) by Douglas Adams would have been better...
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel